File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ void FlutterTizenEngine::NotifyLowMemoryWarning() {
9292}
9393
9494bool FlutterTizenEngine::RunEngine () {
95+ if (engine_ != nullptr ) {
96+ FT_LOGE (" The engine has already started." );
97+ return false ;
98+ }
9599 if (IsHeaded () && !renderer->IsValid ()) {
96100 FT_LOGE (" The display was not valid." );
97101 return false ;
Original file line number Diff line number Diff line change @@ -48,14 +48,11 @@ class FlutterTizenEngineTestHeaded : public FlutterTizenEngineTest {
4848TEST_F (FlutterTizenEngineTest, Run) {
4949 EXPECT_TRUE (engine_ != nullptr );
5050 EXPECT_TRUE (engine_->RunEngine ());
51- EXPECT_TRUE (true );
5251}
5352
54- // TODO
55- TEST_F (FlutterTizenEngineTest, DISABLED_Run_Twice) {
53+ TEST_F (FlutterTizenEngineTest, Run_Twice) {
5654 EXPECT_TRUE (engine_->RunEngine ());
5755 EXPECT_FALSE (engine_->RunEngine ());
58- EXPECT_TRUE (true );
5956}
6057
6158TEST_F (FlutterTizenEngineTest, Stop) {
You can’t perform that action at this time.
0 commit comments