| 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 SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ | 5 #ifndef SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ |
| 6 #define SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ | 6 #define SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "mojo/public/cpp/application/application_impl.h" | |
| 11 #include "mojo/public/cpp/application/application_test_base.h" | 10 #include "mojo/public/cpp/application/application_test_base.h" |
| 12 | 11 |
| 13 namespace js { | 12 namespace js { |
| 14 namespace test { | 13 namespace test { |
| 15 | 14 |
| 16 class JSApplicationTestBase : public mojo::test::ApplicationTestBase { | 15 class JSApplicationTestBase : public mojo::test::ApplicationTestBase { |
| 17 public: | 16 public: |
| 18 JSApplicationTestBase(); | 17 JSApplicationTestBase(); |
| 19 ~JSApplicationTestBase() override; | 18 ~JSApplicationTestBase() override; |
| 20 | 19 |
| 21 protected: | 20 protected: |
| 22 const base::FilePath JSAppPath(const std::string& filename); | 21 const base::FilePath JSAppPath(const std::string& filename); |
| 23 const std::string JSAppURL(const std::string& filename); | 22 const std::string JSAppURL(const std::string& filename); |
| 24 | 23 |
| 25 MOJO_DISALLOW_COPY_AND_ASSIGN(JSApplicationTestBase); | 24 MOJO_DISALLOW_COPY_AND_ASSIGN(JSApplicationTestBase); |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace test | 27 } // namespace test |
| 29 } // namespace js | 28 } // namespace js |
| 30 | 29 |
| 31 #endif // SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ | 30 #endif // SERVICES_JS_TEST_JS_APPLICATION_TEST_BASE_H_ |
| OLD | NEW |