Skip to content

Commit

Permalink
Enable FlutterTizenEngineTest.Run_Twice
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed Jul 8, 2021
1 parent 2e3cbb9 commit 601a517
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions shell/platform/tizen/flutter_tizen_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ void FlutterTizenEngine::NotifyLowMemoryWarning() {
}

bool FlutterTizenEngine::RunEngine() {
if (engine_ != nullptr) {
FT_LOGE("The engine has already started.");
return false;
}
if (IsHeaded() && !renderer->IsValid()) {
FT_LOGE("The display was not valid.");
return false;
Expand Down
5 changes: 1 addition & 4 deletions shell/platform/tizen/flutter_tizen_engine_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ class FlutterTizenEngineTestHeaded : public FlutterTizenEngineTest {
TEST_F(FlutterTizenEngineTest, Run) {
EXPECT_TRUE(engine_ != nullptr);
EXPECT_TRUE(engine_->RunEngine());
EXPECT_TRUE(true);
}

// TODO
TEST_F(FlutterTizenEngineTest, DISABLED_Run_Twice) {
TEST_F(FlutterTizenEngineTest, Run_Twice) {
EXPECT_TRUE(engine_->RunEngine());
EXPECT_FALSE(engine_->RunEngine());
EXPECT_TRUE(true);
}

TEST_F(FlutterTizenEngineTest, Stop) {
Expand Down

0 comments on commit 601a517

Please sign in to comment.