| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ | 5 #ifndef SERVICES_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ |
| 6 #define SERVICES_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ | 6 #define SERVICES_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "files/public/interfaces/directory.mojom.h" | 8 #include "files/interfaces/directory.mojom.h" |
| 9 #include "mojo/public/cpp/application/application_test_base.h" | 9 #include "mojo/public/cpp/application/application_test_base.h" |
| 10 #include "mojo/public/cpp/system/macros.h" | 10 #include "mojo/public/cpp/system/macros.h" |
| 11 | 11 |
| 12 namespace mojio { | 12 namespace mojio { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 // This is a base class for tests that test the underlying implementation (i.e., | 15 // This is a base class for tests that test the underlying implementation (i.e., |
| 16 // doesn't use the singletons). | 16 // doesn't use the singletons). |
| 17 class MojioImplTestBase : public mojo::test::ApplicationTestBase { | 17 class MojioImplTestBase : public mojo::test::ApplicationTestBase { |
| 18 public: | 18 public: |
| 19 MojioImplTestBase(); | 19 MojioImplTestBase(); |
| 20 ~MojioImplTestBase() override; | 20 ~MojioImplTestBase() override; |
| 21 | 21 |
| 22 void SetUp() override; | 22 void SetUp() override; |
| 23 | 23 |
| 24 protected: | 24 protected: |
| 25 mojo::files::DirectoryPtr& directory() { return directory_; } | 25 mojo::files::DirectoryPtr& directory() { return directory_; } |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 mojo::files::DirectoryPtr directory_; | 28 mojo::files::DirectoryPtr directory_; |
| 29 | 29 |
| 30 MOJO_DISALLOW_COPY_AND_ASSIGN(MojioImplTestBase); | 30 MOJO_DISALLOW_COPY_AND_ASSIGN(MojioImplTestBase); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace test | 33 } // namespace test |
| 34 } // namespace mojio | 34 } // namespace mojio |
| 35 | 35 |
| 36 #endif // SERVICES_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ | 36 #endif // SERVICES_FILES_C_TESTS_MOJIO_IMPL_TEST_BASE_H_ |
| OLD | NEW |