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

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

Issue 715123002: Rename sky::TestObserver to sky::TestHarness (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/tools/tester/DEPS ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..d43e30c9ce4d0a452d4bc96e5ff4f51c40ccb697
--- /dev/null
+++ b/sky/tools/tester/test_harness_impl.h
@@ -0,0 +1,37 @@
+// 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/system/core.h"
+#include "sky/viewer/services/test_harness.mojom.h"
+
+namespace sky {
+namespace tester {
+class TestRunner;
+
+class TestHarnessImpl : public mojo::InterfaceImpl<TestHarness> {
+ public:
+ explicit TestHarnessImpl(TestRunner*);
+ virtual ~TestHarnessImpl();
+
+ private:
+ // TestHarness implementation.
+ void OnTestComplete(const mojo::String& test_result) override;
+
+ base::WeakPtr<TestRunner> test_runner_;
+
+ MOJO_DISALLOW_COPY_AND_ASSIGN(TestHarnessImpl);
+};
+
+typedef mojo::InterfaceFactoryImplWithContext<
+ TestHarnessImpl, TestRunner> TestHarnessFactory;
+
+} // namespace tester
+} // namespace sky
+
+#endif // SKY_TOOLS_TESTER_TEST_HARNESS_IMPL_H_
« no previous file with comments | « sky/tools/tester/DEPS ('k') | sky/tools/tester/test_harness_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698