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

Side by Side Diff: chrome/browser/drive/fake_drive_service.cc

Issue 248883004: drive: Use test_util::SetUpTestEntries in FakeDriveServiceTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/drive/fake_drive_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/drive/fake_drive_service.h" 5 #include "chrome/browser/drive/fake_drive_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 next_upload_sequence_number_(0), 166 next_upload_sequence_number_(0),
167 default_max_results_(0), 167 default_max_results_(0),
168 resource_id_count_(0), 168 resource_id_count_(0),
169 resource_list_load_count_(0), 169 resource_list_load_count_(0),
170 change_list_load_count_(0), 170 change_list_load_count_(0),
171 directory_load_count_(0), 171 directory_load_count_(0),
172 about_resource_load_count_(0), 172 about_resource_load_count_(0),
173 app_list_load_count_(0), 173 app_list_load_count_(0),
174 blocked_resource_list_load_count_(0), 174 blocked_resource_list_load_count_(0),
175 offline_(false), 175 offline_(false),
176 never_return_all_resource_list_(false) { 176 never_return_all_resource_list_(false),
177 share_url_base_("https://share_url/") {
177 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 178 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
178 179
179 about_resource_->set_largest_change_id(654321); 180 about_resource_->set_largest_change_id(654321);
180 about_resource_->set_quota_bytes_total(9876543210); 181 about_resource_->set_quota_bytes_total(9876543210);
181 about_resource_->set_quota_bytes_used(6789012345); 182 about_resource_->set_quota_bytes_used(6789012345);
182 about_resource_->set_root_folder_id(GetRootResourceId()); 183 about_resource_->set_root_folder_id(GetRootResourceId());
183 } 184 }
184 185
185 FakeDriveService::~FakeDriveService() { 186 FakeDriveService::~FakeDriveService() {
186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 187 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 google_apis::drive::PermissionRole role, 1548 google_apis::drive::PermissionRole role,
1548 const google_apis::EntryActionCallback& callback) { 1549 const google_apis::EntryActionCallback& callback) {
1549 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1550 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1550 DCHECK(!callback.is_null()); 1551 DCHECK(!callback.is_null());
1551 1552
1552 NOTREACHED(); 1553 NOTREACHED();
1553 return CancelCallback(); 1554 return CancelCallback();
1554 } 1555 }
1555 1556
1556 } // namespace drive 1557 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/drive/fake_drive_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698