mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We no longer use mojom to transport messages. We still use the Mojo EDK to spin the event loop, however.
35 lines
851 B
C++
35 lines
851 B
C++
// 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/ftl/macros.h"
|
|
#include "lib/ftl/memory/weak_ptr.h"
|
|
|
|
namespace shell {
|
|
|
|
class Shell;
|
|
|
|
class PlatformViewTest : public PlatformView {
|
|
public:
|
|
PlatformViewTest();
|
|
|
|
~PlatformViewTest();
|
|
|
|
bool ResourceContextMakeCurrent() override;
|
|
|
|
void RunFromSource(const std::string& assets_directory,
|
|
const std::string& main,
|
|
const std::string& packages) override;
|
|
|
|
private:
|
|
FTL_DISALLOW_COPY_AND_ASSIGN(PlatformViewTest);
|
|
};
|
|
|
|
} // namespace shell
|
|
|
|
#endif // SHELL_TESTING_PLATFORM_VIEW_TEST_H_
|