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

Side by Side Diff: components/drive/service/fake_drive_service.cc

Issue 2910913002: WIP.
Patch Set: rebase Created 3 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
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 "components/drive/service/fake_drive_service.h" 5 #include "components/drive/service/fake_drive_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 std::string(), // no directory resource id, 456 std::string(), // no directory resource id,
457 0, // start offset 457 0, // start offset
458 default_max_results_, 458 default_max_results_,
459 &file_list_load_count_, 459 &file_list_load_count_,
460 base::Bind(&FileListCallbackAdapter, callback)); 460 base::Bind(&FileListCallbackAdapter, callback));
461 return CancelCallback(); 461 return CancelCallback();
462 } 462 }
463 463
464 CancelCallback FakeDriveService::GetFileListInDirectory( 464 CancelCallback FakeDriveService::GetFileListInDirectory(
465 const std::string& directory_resource_id, 465 const std::string& directory_resource_id,
466 const std::string& team_drive_id,
466 const FileListCallback& callback) { 467 const FileListCallback& callback) {
467 DCHECK(thread_checker_.CalledOnValidThread()); 468 DCHECK(thread_checker_.CalledOnValidThread());
468 DCHECK(!directory_resource_id.empty()); 469 DCHECK(!directory_resource_id.empty());
469 DCHECK(!callback.is_null()); 470 DCHECK(!callback.is_null());
470 471
471 GetChangeListInternal(0, // start changestamp 472 GetChangeListInternal(0, // start changestamp
472 std::string(), // empty search query 473 std::string(), // empty search query
473 directory_resource_id, 474 directory_resource_id,
474 0, // start offset 475 0, // start offset
475 default_max_results_, 476 default_max_results_,
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 NOTREACHED(); 1876 NOTREACHED();
1876 return std::unique_ptr<BatchRequestConfiguratorInterface>(); 1877 return std::unique_ptr<BatchRequestConfiguratorInterface>();
1877 } 1878 }
1878 1879
1879 void FakeDriveService::NotifyObservers() { 1880 void FakeDriveService::NotifyObservers() {
1880 for (auto& observer : change_observers_) 1881 for (auto& observer : change_observers_)
1881 observer.OnNewChangeAvailable(); 1882 observer.OnNewChangeAvailable();
1882 } 1883 }
1883 1884
1884 } // namespace drive 1885 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/service/fake_drive_service.h ('k') | components/drive/service/fake_drive_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698