1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_ 6 #define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_ 7 8 #include <memory> 9 10 #include "flutter/fml/macros.h" 11 #include "flutter/shell/platform/embedder/tests/embedder_test_context.h" 12 #include "flutter/testing/testing.h" 13 #include "flutter/testing/thread_test.h" 14 15 namespace flutter { 16 namespace testing { 17 18 class EmbedderTest : public ThreadTest { 19 public: 20 EmbedderTest(); 21 22 ~EmbedderTest() override; 23 24 std::string GetFixturesDirectory() const; 25 26 EmbedderTestContext& GetEmbedderContext(); 27 28 private: 29 std::unique_ptr<EmbedderTestContext> embedder_context_; 30 31 // |testing::Test| 32 void SetUp() override; 33 34 // |testing::Test| 35 void TearDown() override; 36 37 FML_DISALLOW_COPY_AND_ASSIGN(EmbedderTest); 38 }; 39 40 } // namespace testing 41 } // namespace flutter 42 43 #endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_ 44