Flutter Engine
The 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#include "gtest/gtest.h"
16
17namespace flutter {
18namespace testing {
19
20class EmbedderTest : public ThreadTest {
21 public:
23
24 std::string GetFixturesDirectory() const;
25
27
28 private:
29 std::map<EmbedderTestContextType, std::unique_ptr<EmbedderTestContext>>
30 embedder_contexts_;
31
32 FML_DISALLOW_COPY_AND_ASSIGN(EmbedderTest);
33};
34
36 : public EmbedderTest,
37 public ::testing::WithParamInterface<EmbedderTestContextType> {};
38
39} // namespace testing
40} // namespace flutter
41
42#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_H_
GLenum type
EmbedderTestContext & GetEmbedderContext(EmbedderTestContextType type)
std::string GetFixturesDirectory() const
A fixture that creates threads with running message loops that are terminated when the test is done (...
Definition: thread_test.h:27