OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ |
6 #define COMPONENTS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 }; | 91 }; |
92 | 92 |
93 OperationTestBase(); | 93 OperationTestBase(); |
94 explicit OperationTestBase(int test_thread_bundle_options); | 94 explicit OperationTestBase(int test_thread_bundle_options); |
95 ~OperationTestBase() override; | 95 ~OperationTestBase() override; |
96 | 96 |
97 // testing::Test overrides. | 97 // testing::Test overrides. |
98 void SetUp() override; | 98 void SetUp() override; |
99 | 99 |
100 // Returns the path of the temporary directory for putting test files. | 100 // Returns the path of the temporary directory for putting test files. |
101 base::FilePath temp_dir() const { return temp_dir_.path(); } | 101 base::FilePath temp_dir() const { return temp_dir_.GetPath(); } |
102 | 102 |
103 // Synchronously gets the resource entry corresponding to the path from local | 103 // Synchronously gets the resource entry corresponding to the path from local |
104 // ResourceMetadta. | 104 // ResourceMetadta. |
105 FileError GetLocalResourceEntry(const base::FilePath& path, | 105 FileError GetLocalResourceEntry(const base::FilePath& path, |
106 ResourceEntry* entry); | 106 ResourceEntry* entry); |
107 | 107 |
108 // Synchronously gets the resource entry corresponding to the ID from local | 108 // Synchronously gets the resource entry corresponding to the ID from local |
109 // ResourceMetadta. | 109 // ResourceMetadta. |
110 FileError GetLocalResourceEntryById(const std::string& local_id, | 110 FileError GetLocalResourceEntryById(const std::string& local_id, |
111 ResourceEntry* entry); | 111 ResourceEntry* entry); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 metadata_; | 158 metadata_; |
159 std::unique_ptr<internal::AboutResourceLoader> about_resource_loader_; | 159 std::unique_ptr<internal::AboutResourceLoader> about_resource_loader_; |
160 std::unique_ptr<internal::LoaderController> loader_controller_; | 160 std::unique_ptr<internal::LoaderController> loader_controller_; |
161 std::unique_ptr<internal::ChangeListLoader> change_list_loader_; | 161 std::unique_ptr<internal::ChangeListLoader> change_list_loader_; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace file_system | 164 } // namespace file_system |
165 } // namespace drive | 165 } // namespace drive |
166 | 166 |
167 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 167 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ |
OLD | NEW |