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

Side by Side Diff: chrome/browser/sync_file_system/sync_file_system_test_util.cc

Issue 294893005: [SyncFS] Make GetOriginStatusMap asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scoped_ptr Created 6 years, 7 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 (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/sync_file_system/sync_file_system_test_util.h" 5 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
6 6
7 #include "base/memory/scoped_ptr.h"
7 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/sync_file_system/remote_file_sync_service.h"
8 #include "chrome/browser/sync_file_system/sync_status_code.h" 10 #include "chrome/browser/sync_file_system/sync_status_code.h"
9 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
10 #include "google_apis/drive/gdata_errorcode.h" 12 #include "google_apis/drive/gdata_errorcode.h"
11 13
12 using content::BrowserThread; 14 using content::BrowserThread;
13 15
14 namespace sync_file_system { 16 namespace sync_file_system {
15 17
16 namespace drive_backend { 18 namespace drive_backend {
17 class MetadataDatabase; 19 class MetadataDatabase;
(...skipping 28 matching lines...) Expand all
46 } 48 }
47 49
48 // Instantiate versions we know callers will need. 50 // Instantiate versions we know callers will need.
49 template base::Callback<void(SyncStatusCode)> 51 template base::Callback<void(SyncStatusCode)>
50 AssignAndQuitCallback(base::RunLoop*, SyncStatusCode*); 52 AssignAndQuitCallback(base::RunLoop*, SyncStatusCode*);
51 53
52 #define INSTANTIATE_RECEIVER(type) \ 54 #define INSTANTIATE_RECEIVER(type) \
53 template base::Callback<void(type)> CreateResultReceiver(type*); 55 template base::Callback<void(type)> CreateResultReceiver(type*);
54 INSTANTIATE_RECEIVER(SyncStatusCode); 56 INSTANTIATE_RECEIVER(SyncStatusCode);
55 INSTANTIATE_RECEIVER(google_apis::GDataErrorCode); 57 INSTANTIATE_RECEIVER(google_apis::GDataErrorCode);
58 INSTANTIATE_RECEIVER(scoped_ptr<RemoteFileSyncService::OriginStatusMap>);
56 #undef INSTANTIATE_RECEIVER 59 #undef INSTANTIATE_RECEIVER
57 60
58 } // namespace sync_file_system 61 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698