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

Side by Side Diff: sky/tools/tester/test_runner.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 unified diff | Download patch
« no previous file with comments | « sky/tools/tester/test_observer_impl.cc ('k') | sky/tools/tester/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_TOOLS_TESTER_TEST_RUNNER_H_ 5 #ifndef SKY_TOOLS_TESTER_TEST_RUNNER_H_
6 #define SKY_TOOLS_TESTER_TEST_RUNNER_H_ 6 #define SKY_TOOLS_TESTER_TEST_RUNNER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "sky/tools/tester/test_observer_impl.h" 9 #include "sky/tools/tester/test_harness_impl.h"
10 10
11 namespace mojo{ 11 namespace mojo{
12 class View; 12 class View;
13 } 13 }
14 14
15 namespace sky { 15 namespace sky {
16 namespace tester { 16 namespace tester {
17 17
18 class TestRunnerClient { 18 class TestRunnerClient {
19 public: 19 public:
20 virtual void OnTestComplete() = 0; 20 virtual void OnTestComplete() = 0;
21 }; 21 };
22 22
23 class TestRunner { 23 class TestRunner {
24 public: 24 public:
25 TestRunner(TestRunnerClient* client, mojo::View* container, 25 TestRunner(TestRunnerClient* client, mojo::View* container,
26 const std::string& url); 26 const std::string& url);
27 virtual ~TestRunner(); 27 virtual ~TestRunner();
28 28
29 base::WeakPtr<TestRunner> GetWeakPtr(); 29 base::WeakPtr<TestRunner> GetWeakPtr();
30 void OnTestStart(); 30 void OnTestStart();
31 void OnTestComplete(const std::string& test_result); 31 void OnTestComplete(const std::string& test_result);
32 32
33 private: 33 private:
34 TestObserverFactory test_observer_factory_; 34 TestHarnessFactory test_harness_factory_;
35 TestRunnerClient* client_; 35 TestRunnerClient* client_;
36 base::WeakPtrFactory<TestRunner> weak_ptr_factory_; 36 base::WeakPtrFactory<TestRunner> weak_ptr_factory_;
37 37
38 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRunner); 38 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRunner);
39 }; 39 };
40 40
41 } // namespace tester 41 } // namespace tester
42 } // namespace sky 42 } // namespace sky
43 43
44 #endif // SKY_TOOLS_TESTER_TEST_RUNNER_H_ 44 #endif // SKY_TOOLS_TESTER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « sky/tools/tester/test_observer_impl.cc ('k') | sky/tools/tester/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698