| OLD | NEW |
| 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 "mojo/public/cpp/application/service_provider_impl.h" | 9 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 10 #include "sky/tools/tester/test_harness_impl.h" | 10 #include "sky/tools/tester/test_harness_impl.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void OnTestComplete(const std::string& test_result, | 38 void OnTestComplete(const std::string& test_result, |
| 39 const mojo::Array<uint8_t>& pixels); | 39 const mojo::Array<uint8_t>& pixels); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // mojo::InterfaceFactory<TestHarness> implementation: | 42 // mojo::InterfaceFactory<TestHarness> implementation: |
| 43 void Create(mojo::ApplicationConnection* app, | 43 void Create(mojo::ApplicationConnection* app, |
| 44 mojo::InterfaceRequest<TestHarness> request) override; | 44 mojo::InterfaceRequest<TestHarness> request) override; |
| 45 | 45 |
| 46 mojo::ServiceProviderImpl test_harness_provider_impl_; | 46 mojo::ServiceProviderImpl test_harness_provider_impl_; |
| 47 TestRunnerClient* client_; | 47 TestRunnerClient* client_; |
| 48 bool enable_pixel_dumping_; |
| 48 base::WeakPtrFactory<TestRunner> weak_ptr_factory_; | 49 base::WeakPtrFactory<TestRunner> weak_ptr_factory_; |
| 49 bool enable_pixel_dumping_; | |
| 50 | 50 |
| 51 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRunner); | 51 MOJO_DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace tester | 54 } // namespace tester |
| 55 } // namespace sky | 55 } // namespace sky |
| 56 | 56 |
| 57 #endif // SKY_TOOLS_TESTER_TEST_RUNNER_H_ | 57 #endif // SKY_TOOLS_TESTER_TEST_RUNNER_H_ |
| OLD | NEW |