OLD | NEW |
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 resource_id_count_(0), | 171 resource_id_count_(0), |
172 resource_list_load_count_(0), | 172 resource_list_load_count_(0), |
173 change_list_load_count_(0), | 173 change_list_load_count_(0), |
174 directory_load_count_(0), | 174 directory_load_count_(0), |
175 about_resource_load_count_(0), | 175 about_resource_load_count_(0), |
176 app_list_load_count_(0), | 176 app_list_load_count_(0), |
177 blocked_resource_list_load_count_(0), | 177 blocked_resource_list_load_count_(0), |
178 offline_(false), | 178 offline_(false), |
179 never_return_all_resource_list_(false) { | 179 never_return_all_resource_list_(false) { |
180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 181 |
| 182 about_resource_->set_largest_change_id(654321); |
| 183 about_resource_->set_quota_bytes_total(9876543210); |
| 184 about_resource_->set_quota_bytes_used(6789012345); |
| 185 about_resource_->set_root_folder_id(GetRootResourceId()); |
181 } | 186 } |
182 | 187 |
183 FakeDriveService::~FakeDriveService() { | 188 FakeDriveService::~FakeDriveService() { |
184 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 189 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
185 STLDeleteValues(&entries_); | 190 STLDeleteValues(&entries_); |
186 } | 191 } |
187 | 192 |
188 bool FakeDriveService::LoadResourceListForWapi( | 193 bool FakeDriveService::LoadResourceListForWapi( |
189 const std::string& relative_path) { | 194 const std::string& relative_path) { |
190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 195 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 google_apis::drive::PermissionRole role, | 1562 google_apis::drive::PermissionRole role, |
1558 const google_apis::EntryActionCallback& callback) { | 1563 const google_apis::EntryActionCallback& callback) { |
1559 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1564 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1560 DCHECK(!callback.is_null()); | 1565 DCHECK(!callback.is_null()); |
1561 | 1566 |
1562 NOTREACHED(); | 1567 NOTREACHED(); |
1563 return CancelCallback(); | 1568 return CancelCallback(); |
1564 } | 1569 } |
1565 | 1570 |
1566 } // namespace drive | 1571 } // namespace drive |
OLD | NEW |