Flutter Engine
embedder_test.h
Go to the documentation of this file.
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 <map>
9 #include <memory>
10 
11 #include "flutter/fml/macros.h"
12 #include "flutter/shell/platform/embedder/tests/embedder_test_context.h"
13 #include "flutter/testing/testing.h"
14 #include "flutter/testing/thread_test.h"
15 
16 namespace flutter {
17 namespace testing {
18 
19 class EmbedderTest : public ThreadTest {
20  public:
21  enum class ContextType {
24  };
25 
26  EmbedderTest();
27 
28  std::string GetFixturesDirectory() const;
29 
31 
32  private:
33  std::map<ContextType, std::unique_ptr<EmbedderTestContext>>
34  embedder_contexts_;
35 
37 };
38 
39 } // namespace testing
40 } // namespace flutter
41 
42 #endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_
std::string GetFixturesDirectory() const
EmbedderTestContext & GetEmbedderContext(ContextType type)
A fixture that creates threads with running message loops that are terminated when the test is done (...
Definition: thread_test.h:27
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition: macros.h:27