Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: sky/tools/tester/test_harness_impl.h

Issue 934403002: Remove last uses of InterfaceImpl<> in Sky C++ code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/tools/tester/test_harness_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/tester/test_harness_impl.h
diff --git a/sky/tools/tester/test_harness_impl.h b/sky/tools/tester/test_harness_impl.h
index 8a597035b86c9bdb2f35dbf765b69a2408ac884b..3067b525f6285ece0d9d1afe0ba0525576cebdfe 100644
--- a/sky/tools/tester/test_harness_impl.h
+++ b/sky/tools/tester/test_harness_impl.h
@@ -7,6 +7,7 @@
#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"
@@ -14,9 +15,10 @@ namespace sky {
namespace tester {
class TestRunner;
-class TestHarnessImpl : public mojo::InterfaceImpl<TestHarness> {
+class TestHarnessImpl : public TestHarness {
public:
- explicit TestHarnessImpl(TestRunner*);
+ TestHarnessImpl(TestRunner* runner,
+ mojo::InterfaceRequest<TestHarness> request);
virtual ~TestHarnessImpl();
private:
@@ -25,14 +27,12 @@ class TestHarnessImpl : public mojo::InterfaceImpl<TestHarness> {
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);
};
-typedef mojo::InterfaceFactoryImplWithContext<
- TestHarnessImpl, TestRunner> TestHarnessFactory;
-
} // namespace tester
} // namespace sky
« no previous file with comments | « no previous file | sky/tools/tester/test_harness_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698