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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 LoggingObserver* observer() { return &observer_; } 80 LoggingObserver* observer() { return &observer_; }
81 JobScheduler* scheduler() { return scheduler_.get(); } 81 JobScheduler* scheduler() { return scheduler_.get(); }
82 base::SequencedTaskRunner* blocking_task_runner() { 82 base::SequencedTaskRunner* blocking_task_runner() {
83 return blocking_task_runner_; 83 return blocking_task_runner_;
84 } 84 }
85 internal::ResourceMetadata* metadata() { return metadata_.get(); } 85 internal::ResourceMetadata* metadata() { return metadata_.get(); }
86 internal::FileCache* cache() { return cache_.get(); } 86 internal::FileCache* cache() { return cache_.get(); }
87 87
88 private: 88 private:
89 MessageLoopForUI message_loop_; 89 base::MessageLoopForUI message_loop_;
90 content::TestBrowserThread ui_thread_; 90 content::TestBrowserThread ui_thread_;
91 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 91 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
92 scoped_ptr<TestingProfile> profile_; 92 scoped_ptr<TestingProfile> profile_;
93 base::ScopedTempDir temp_dir_; 93 base::ScopedTempDir temp_dir_;
94 94
95 LoggingObserver observer_; 95 LoggingObserver observer_;
96 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_; 96 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_;
97 scoped_ptr<JobScheduler> scheduler_; 97 scoped_ptr<JobScheduler> scheduler_;
98 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> 98 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests>
99 metadata_; 99 metadata_;
100 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_; 100 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_;
101 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; 101 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_;
102 }; 102 };
103 103
104 } // namespace file_system 104 } // namespace file_system
105 } // namespace drive 105 } // namespace drive
106 106
107 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ 107 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698