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 COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ |
6 #define COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ | 6 #define COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/filesystem/public/interfaces/file_system.mojom.h" | 12 #include "components/filesystem/public/interfaces/file_system.mojom.h" |
13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
14 #include "services/shell/public/cpp/service_test.h" | 14 #include "services/service_manager/public/cpp/service_test.h" |
15 | 15 |
16 namespace filesystem { | 16 namespace filesystem { |
17 | 17 |
18 template <typename... Args> void IgnoreAllArgs(Args&&... args) {} | 18 template <typename... Args> void IgnoreAllArgs(Args&&... args) {} |
19 | 19 |
20 template <typename... Args> | 20 template <typename... Args> |
21 void DoCaptures(Args*... out_args, Args... in_args) { | 21 void DoCaptures(Args*... out_args, Args... in_args) { |
22 IgnoreAllArgs((*out_args = std::move(in_args))...); | 22 IgnoreAllArgs((*out_args = std::move(in_args))...); |
23 } | 23 } |
24 | 24 |
(...skipping 29 matching lines...) Expand all Loading... |
54 | 54 |
55 private: | 55 private: |
56 mojom::FileSystemPtr files_; | 56 mojom::FileSystemPtr files_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(FilesTestBase); | 58 DISALLOW_COPY_AND_ASSIGN(FilesTestBase); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace filesystem | 61 } // namespace filesystem |
62 | 62 |
63 #endif // COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ | 63 #endif // COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ |
OLD | NEW |