forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatform_view_test.h
36 lines (24 loc) · 886 Bytes
/
platform_view_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
// Copyright 2016 The Chromium 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 SHELL_TESTING_PLATFORM_VIEW_TEST_H_
#define SHELL_TESTING_PLATFORM_VIEW_TEST_H_
#include "flutter/shell/common/platform_view.h"
#include "lib/fxl/macros.h"
#include "lib/fxl/memory/weak_ptr.h"
namespace shell {
class Shell;
class PlatformViewTest : public PlatformView {
public:
PlatformViewTest();
~PlatformViewTest();
virtual void Attach() override;
bool ResourceContextMakeCurrent() override;
void RunFromSource(const std::string& assets_directory,
const std::string& main,
const std::string& packages) override;
private:
FXL_DISALLOW_COPY_AND_ASSIGN(PlatformViewTest);
};
} // namespace shell
#endif // SHELL_TESTING_PLATFORM_VIEW_TEST_H_