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

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 "sync/internal_api/public/test/fake_sync_manager.h" 5 #include "sync/internal_api/public/test/fake_sync_manager.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (!sync_task_runner_->PostTaskAndReply( 79 if (!sync_task_runner_->PostTaskAndReply(
80 FROM_HERE, 80 FROM_HERE,
81 base::Bind(&base::DoNothing), 81 base::Bind(&base::DoNothing),
82 run_loop.QuitClosure())) { 82 run_loop.QuitClosure())) {
83 NOTREACHED(); 83 NOTREACHED();
84 } 84 }
85 run_loop.Run(); 85 run_loop.Run();
86 } 86 }
87 87
88 void FakeSyncManager::Init( 88 void FakeSyncManager::Init(
89 const FilePath& database_location, 89 const base::FilePath& database_location,
90 const WeakHandle<JsEventHandler>& event_handler, 90 const WeakHandle<JsEventHandler>& event_handler,
91 const std::string& sync_server_and_path, 91 const std::string& sync_server_and_path,
92 int sync_server_port, 92 int sync_server_port,
93 bool use_ssl, 93 bool use_ssl,
94 scoped_ptr<HttpPostProviderFactory> post_factory, 94 scoped_ptr<HttpPostProviderFactory> post_factory,
95 const std::vector<ModelSafeWorker*>& workers, 95 const std::vector<ModelSafeWorker*>& workers,
96 ExtensionsActivityMonitor* extensions_activity_monitor, 96 ExtensionsActivityMonitor* extensions_activity_monitor,
97 ChangeDelegate* change_delegate, 97 ChangeDelegate* change_delegate,
98 const SyncCredentials& credentials, 98 const SyncCredentials& credentials,
99 scoped_ptr<Invalidator> invalidator, 99 scoped_ptr<Invalidator> invalidator,
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 InvalidatorState state) { 284 InvalidatorState state) {
285 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); 285 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread());
286 registrar_.UpdateInvalidatorState(state); 286 registrar_.UpdateInvalidatorState(state);
287 } 287 }
288 288
289 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 289 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
290 return last_refresh_request_types_; 290 return last_refresh_request_types_;
291 } 291 }
292 292
293 } // namespace syncer 293 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/internal_api/test/test_internal_components_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698