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  EmbedderTest();
22 
23  std::string GetFixturesDirectory() const;
24 
26 
27  private:
28  std::map<EmbedderTestContextType, std::unique_ptr<EmbedderTestContext>>
29  embedder_contexts_;
30 
31  FML_DISALLOW_COPY_AND_ASSIGN(EmbedderTest);
32 };
33 
34 } // namespace testing
35 } // namespace flutter
36 
37 #endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_
std::string GetFixturesDirectory() const
KeyCallType type
A fixture that creates threads with running message loops that are terminated when the test is done (...
Definition: thread_test.h:27
EmbedderTestContext & GetEmbedderContext(EmbedderTestContextType type)