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 CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const std::set<std::string>& upload_needed_resource_ids() const { | 60 const std::set<std::string>& upload_needed_resource_ids() const { |
61 return upload_needed_resource_ids_; | 61 return upload_needed_resource_ids_; |
62 } | 62 } |
63 | 63 |
64 private: | 64 private: |
65 std::set<base::FilePath> changed_paths_; | 65 std::set<base::FilePath> changed_paths_; |
66 std::set<std::string> upload_needed_resource_ids_; | 66 std::set<std::string> upload_needed_resource_ids_; |
67 }; | 67 }; |
68 | 68 |
69 OperationTestBase(); | 69 OperationTestBase(); |
| 70 explicit OperationTestBase(int test_thread_bundle_options); |
70 virtual ~OperationTestBase(); | 71 virtual ~OperationTestBase(); |
71 | 72 |
72 // testing::Test overrides. | 73 // testing::Test overrides. |
73 virtual void SetUp() OVERRIDE; | 74 virtual void SetUp() OVERRIDE; |
74 | 75 |
75 // Returns the path of the temporary directory for putting test files. | 76 // Returns the path of the temporary directory for putting test files. |
76 base::FilePath temp_dir() const { return temp_dir_.path(); } | 77 base::FilePath temp_dir() const { return temp_dir_.path(); } |
77 | 78 |
78 // Synchronously gets the resource entry corresponding to the path from local | 79 // Synchronously gets the resource entry corresponding to the path from local |
79 // ResourceMetadta. | 80 // ResourceMetadta. |
(...skipping 29 matching lines...) Expand all Loading... |
109 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> | 110 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> |
110 metadata_; | 111 metadata_; |
111 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_; | 112 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_; |
112 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; | 113 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; |
113 }; | 114 }; |
114 | 115 |
115 } // namespace file_system | 116 } // namespace file_system |
116 } // namespace drive | 117 } // namespace drive |
117 | 118 |
118 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ | 119 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ |
OLD | NEW |