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

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

Issue 22335004: Add drive::FileSystem::GetFileByPathForSaving(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 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 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" 5 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h"
6 6
7 #include "base/prefs/testing_pref_service.h" 7 #include "base/prefs/testing_pref_service.h"
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "chrome/browser/chromeos/drive/change_list_loader.h" 9 #include "chrome/browser/chromeos/drive/change_list_loader.h"
10 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" 10 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h"
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation( 34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation(
35 const std::string& resource_id) { 35 const std::string& resource_id) {
36 upload_needed_resource_ids_.insert(resource_id); 36 upload_needed_resource_ids_.insert(resource_id);
37 } 37 }
38 38
39 OperationTestBase::OperationTestBase() { 39 OperationTestBase::OperationTestBase() {
40 } 40 }
41 41
42 OperationTestBase::OperationTestBase(int test_thread_bundle_options)
43 : thread_bundle_(test_thread_bundle_options) {
44 }
45
42 OperationTestBase::~OperationTestBase() { 46 OperationTestBase::~OperationTestBase() {
43 } 47 }
44 48
45 void OperationTestBase::SetUp() { 49 void OperationTestBase::SetUp() {
46 scoped_refptr<base::SequencedWorkerPool> pool = 50 scoped_refptr<base::SequencedWorkerPool> pool =
47 content::BrowserThread::GetBlockingPool(); 51 content::BrowserThread::GetBlockingPool();
48 blocking_task_runner_ = 52 blocking_task_runner_ =
49 pool->GetSequencedTaskRunner(pool->GetSequenceToken()); 53 pool->GetSequencedTaskRunner(pool->GetSequenceToken());
50 54
51 pref_service_.reset(new TestingPrefServiceSimple); 55 pref_service_.reset(new TestingPrefServiceSimple);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 FROM_HERE, 127 FROM_HERE,
124 base::Bind(&internal::ResourceMetadata::GetResourceEntryByPath, 128 base::Bind(&internal::ResourceMetadata::GetResourceEntryByPath,
125 base::Unretained(metadata()), path, entry), 129 base::Unretained(metadata()), path, entry),
126 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error))); 130 base::Bind(google_apis::test_util::CreateCopyResultCallback(&error)));
127 test_util::RunBlockingPoolTask(); 131 test_util::RunBlockingPoolTask();
128 return error; 132 return error;
129 } 133 }
130 134
131 } // namespace file_system 135 } // namespace file_system
132 } // namespace drive 136 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/operation_test_base.h ('k') | chrome/browser/chromeos/drive/file_system_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698