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

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

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo. Created 6 years, 11 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 23 matching lines...) Expand all
34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation( 34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation(
35 const std::string& local_id) { 35 const std::string& local_id) {
36 upload_needed_local_ids_.insert(local_id); 36 upload_needed_local_ids_.insert(local_id);
37 } 37 }
38 38
39 void OperationTestBase::LoggingObserver::OnEntryUpdatedByOperation( 39 void OperationTestBase::LoggingObserver::OnEntryUpdatedByOperation(
40 const std::string& local_id) { 40 const std::string& local_id) {
41 updated_local_ids_.insert(local_id); 41 updated_local_ids_.insert(local_id);
42 } 42 }
43 43
44 void OperationTestBase::LoggingObserver::OnDriveSyncError(
45 DriveSyncErrorType type) {
46 drive_sync_errors_.push_back(type);
47 }
48
44 OperationTestBase::OperationTestBase() { 49 OperationTestBase::OperationTestBase() {
45 } 50 }
46 51
47 OperationTestBase::OperationTestBase(int test_thread_bundle_options) 52 OperationTestBase::OperationTestBase(int test_thread_bundle_options)
48 : thread_bundle_(test_thread_bundle_options) { 53 : thread_bundle_(test_thread_bundle_options) {
49 } 54 }
50 55
51 OperationTestBase::~OperationTestBase() { 56 OperationTestBase::~OperationTestBase() {
52 } 57 }
53 58
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 FileError OperationTestBase::CheckForUpdates() { 174 FileError OperationTestBase::CheckForUpdates() {
170 FileError error = FILE_ERROR_FAILED; 175 FileError error = FILE_ERROR_FAILED;
171 change_list_loader_->CheckForUpdates( 176 change_list_loader_->CheckForUpdates(
172 google_apis::test_util::CreateCopyResultCallback(&error)); 177 google_apis::test_util::CreateCopyResultCallback(&error));
173 test_util::RunBlockingPoolTask(); 178 test_util::RunBlockingPoolTask();
174 return error; 179 return error;
175 } 180 }
176 181
177 } // namespace file_system 182 } // namespace file_system
178 } // namespace drive 183 } // 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_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698