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

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, 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 LoggingObserver* observer() { return &observer_; } 83 LoggingObserver* observer() { return &observer_; }
84 JobScheduler* scheduler() { return scheduler_.get(); } 84 JobScheduler* scheduler() { return scheduler_.get(); }
85 base::SequencedTaskRunner* blocking_task_runner() { 85 base::SequencedTaskRunner* blocking_task_runner() {
86 return blocking_task_runner_; 86 return blocking_task_runner_;
87 } 87 }
88 internal::ResourceMetadata* metadata() { return metadata_.get(); } 88 internal::ResourceMetadata* metadata() { return metadata_.get(); }
89 internal::FileCache* cache() { return cache_.get(); } 89 internal::FileCache* cache() { return cache_.get(); }
90 90
91 private: 91 private:
92 MessageLoopForUI message_loop_; 92 base::MessageLoopForUI message_loop_;
93 content::TestBrowserThread ui_thread_; 93 content::TestBrowserThread ui_thread_;
94 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 94 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
95 scoped_ptr<TestingProfile> profile_; 95 scoped_ptr<TestingProfile> profile_;
96 base::ScopedTempDir temp_dir_; 96 base::ScopedTempDir temp_dir_;
97 97
98 LoggingObserver observer_; 98 LoggingObserver observer_;
99 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_; 99 scoped_ptr<google_apis::FakeDriveService> fake_drive_service_;
100 scoped_ptr<JobScheduler> scheduler_; 100 scoped_ptr<JobScheduler> scheduler_;
101 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests> 101 scoped_ptr<internal::ResourceMetadata, test_util::DestroyHelperForTests>
102 metadata_; 102 metadata_;
103 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_; 103 scoped_ptr<FakeFreeDiskSpaceGetter> fake_free_disk_space_getter_;
104 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_; 104 scoped_ptr<internal::FileCache, test_util::DestroyHelperForTests> cache_;
105 }; 105 };
106 106
107 } // namespace file_system 107 } // namespace file_system
108 } // namespace drive 108 } // namespace drive
109 109
110 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_TEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_cache_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698