Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/chromeos/drive/file_system/operation_test_base.h

Issue 17004011: drive: DriveIntegrationService owns ResourceMetadataStorage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a nit Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 11 matching lines...) Expand all
22 22
23 namespace drive { 23 namespace drive {
24 24
25 class FakeDriveService; 25 class FakeDriveService;
26 class FakeFreeDiskSpaceGetter; 26 class FakeFreeDiskSpaceGetter;
27 class JobScheduler; 27 class JobScheduler;
28 28
29 namespace internal { 29 namespace internal {
30 class FileCache; 30 class FileCache;
31 class ResourceMetadata; 31 class ResourceMetadata;
32 class ResourceMetadataStorage;
32 } // namespace internal 33 } // namespace internal
33 34
34 namespace file_system { 35 namespace file_system {
35 36
36 // Base fixture class for testing Drive file system operations. It sets up the 37 // Base fixture class for testing Drive file system operations. It sets up the
37 // basic set of Drive internal classes (ResourceMetadata, Cache, etc) on top of 38 // basic set of Drive internal classes (ResourceMetadata, Cache, etc) on top of
38 // FakeDriveService for testing. 39 // FakeDriveService for testing.
39 class OperationTestBase : public testing::Test { 40 class OperationTestBase : public testing::Test {
40 protected: 41 protected:
41 // OperationObserver that records all the events. 42 // OperationObserver that records all the events.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 private: 99 private:
99 content::TestBrowserThreadBundle thread_bundle_; 100 content::TestBrowserThreadBundle thread_bundle_;
100 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 101 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
101 scoped_ptr<TestingProfile> profile_; 102 scoped_ptr<TestingProfile> profile_;
102 base::ScopedTempDir temp_dir_; 103 base::ScopedTempDir temp_dir_;
103 104
104 LoggingObserver observer_; 105 LoggingObserver observer_;
105 scoped_ptr<FakeDriveService> fake_drive_service_; 106 scoped_ptr<FakeDriveService> fake_drive_service_;
106 scoped_ptr<JobScheduler> scheduler_; 107 scoped_ptr<JobScheduler> scheduler_;
108 scoped_ptr<internal::ResourceMetadataStorage,
109 test_util::DestroyHelperForTests> metadata_storage_;
107 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> 110 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests>
108 metadata_; 111 metadata_;
109 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_; 112 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_;
110 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; 113 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_;
111 }; 114 };
112 115
113 } // namespace file_system 116 } // namespace file_system
114 } // namespace drive 117 } // namespace drive
115 118
116 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ 119 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698