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