Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
embedder
tests
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
17
namespace
flutter
{
18
namespace
testing {
19
20
class
EmbedderTest
:
public
ThreadTest
{
21
public
:
22
EmbedderTest
();
23
24
std::string
GetFixturesDirectory
()
const
;
25
26
EmbedderTestContext
&
GetEmbedderContext
(
EmbedderTestContextType
type
);
27
28
private
:
29
std::map<EmbedderTestContextType, std::unique_ptr<EmbedderTestContext>>
30
embedder_contexts_;
31
32
FML_DISALLOW_COPY_AND_ASSIGN
(
EmbedderTest
);
33
};
34
35
class
EmbedderTestMultiBackend
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_
flutter::testing::EmbedderTestContext
Definition
embedder_test_context.h:55
flutter::testing::EmbedderTestMultiBackend
Definition
embedder_test.h:37
flutter::testing::EmbedderTest
Definition
embedder_test.h:20
flutter::testing::EmbedderTest::EmbedderTest
EmbedderTest()
flutter::testing::EmbedderTest::GetEmbedderContext
EmbedderTestContext & GetEmbedderContext(EmbedderTestContextType type)
Definition
embedder_test.cc:29
flutter::testing::EmbedderTest::GetFixturesDirectory
std::string GetFixturesDirectory() const
Definition
embedder_test.cc:25
flutter::testing::ThreadTest
A fixture that creates threads with running message loops that are terminated when the test is done (...
Definition
thread_test.h:27
type
uint8_t type
Definition
fl_standard_message_codec_test.cc:1115
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter::testing::EmbedderTestContextType
EmbedderTestContextType
Definition
embedder_test_context.h:48
flutter
Definition
asset_manager.cc:10
Generated on Fri Apr 26 2024 06:14:27 for Flutter Engine by
1.9.8