mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
- New chromium clang rules require explicit external destructors so system/lib added for MessagePipe, DataPipe and SharedBuffer - New chromium clang rules require override and no virtual in declarations, so many files updated. - cc_strip_video patch updated. BUG= R=jamesr@chromium.org Review URL: https://codereview.chromium.org/988693005
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// Copyright 2014 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 SKY_TOOLS_TESTER_TEST_HARNESS_IMPL_H_
|
|
#define SKY_TOOLS_TESTER_TEST_HARNESS_IMPL_H_
|
|
|
|
#include "base/memory/weak_ptr.h"
|
|
#include "mojo/public/cpp/application/interface_factory_impl.h"
|
|
#include "mojo/public/cpp/bindings/strong_binding.h"
|
|
#include "mojo/public/cpp/system/core.h"
|
|
#include "sky/services/testing/test_harness.mojom.h"
|
|
|
|
namespace sky {
|
|
namespace tester {
|
|
class TestRunner;
|
|
|
|
class TestHarnessImpl : public TestHarness {
|
|
public:
|
|
TestHarnessImpl(TestRunner* runner,
|
|
mojo::InterfaceRequest<TestHarness> request);
|
|
~TestHarnessImpl() override;
|
|
|
|
private:
|
|
// TestHarness implementation.
|
|
void OnTestComplete(const mojo::String& test_result,
|
|
const mojo::Array<uint8_t> pixels) override;
|
|
void DispatchInputEvent(mojo::EventPtr event) override;
|
|
|
|
mojo::StrongBinding<TestHarness> binding_;
|
|
base::WeakPtr<TestRunner> test_runner_;
|
|
|
|
MOJO_DISALLOW_COPY_AND_ASSIGN(TestHarnessImpl);
|
|
};
|
|
|
|
} // namespace tester
|
|
} // namespace sky
|
|
|
|
#endif // SKY_TOOLS_TESTER_TEST_HARNESS_IMPL_H_
|