forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtime_test.h
45 lines (31 loc) · 1.02 KB
/
runtime_test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_RUNTIME_RUNTIME_TEST_H_
#define FLUTTER_RUNTIME_RUNTIME_TEST_H_
#include <memory>
#include "flutter/common/settings.h"
#include "flutter/fml/macros.h"
#include "flutter/testing/test_dart_native_resolver.h"
#include "flutter/testing/thread_test.h"
namespace flutter {
namespace testing {
class RuntimeTest : public ThreadTest {
public:
RuntimeTest();
~RuntimeTest();
Settings CreateSettingsForFixture();
void AddNativeCallback(std::string name, Dart_NativeFunction callback);
protected:
// |testing::ThreadTest|
void SetUp() override;
// |testing::ThreadTest|
void TearDown() override;
private:
fml::UniqueFD assets_dir_;
std::shared_ptr<TestDartNativeResolver> native_resolver_;
void SetSnapshotsAndAssets(Settings& settings);
};
} // namespace testing
} // namespace flutter
#endif // FLUTTER_RUNTIME_RUNTIME_TEST_H_