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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc

Issue 288193002: [SyncFS] Construct and destruct sync_worker in worker_task_runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed RunLoop Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/drive_backend/sync_engine.h" 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/drive/drive_uploader.h" 10 #include "chrome/browser/drive/drive_uploader.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 scoped_ptr<drive::DriveServiceInterface> 111 scoped_ptr<drive::DriveServiceInterface>
112 fake_drive_service(new drive::FakeDriveService); 112 fake_drive_service(new drive::FakeDriveService);
113 113
114 sync_engine_.reset(new drive_backend::SyncEngine( 114 sync_engine_.reset(new drive_backend::SyncEngine(
115 fake_drive_service.Pass(), 115 fake_drive_service.Pass(),
116 scoped_ptr<drive::DriveUploaderInterface>(), 116 scoped_ptr<drive::DriveUploaderInterface>(),
117 base::MessageLoopProxy::current(), 117 base::MessageLoopProxy::current(),
118 NULL /* notification_manager */, 118 NULL /* notification_manager */,
119 extension_service_.get(), 119 extension_service_.get(),
120 NULL /* signin_manager */)); 120 NULL /* signin_manager */));
121
tzik 2014/05/26 06:50:21 ditto
peria 2014/05/26 07:55:09 Done.
121 sync_engine_->Initialize(profile_dir_.path(), 122 sync_engine_->Initialize(profile_dir_.path(),
122 base::MessageLoopProxy::current(), 123 base::MessageLoopProxy::current(),
123 in_memory_env_.get()); 124 in_memory_env_.get());
124 sync_engine_->SetSyncEnabled(true); 125 sync_engine_->SetSyncEnabled(true);
125 base::RunLoop().RunUntilIdle(); 126 base::RunLoop().RunUntilIdle();
126 } 127 }
127 128
128 virtual void TearDown() OVERRIDE { 129 virtual void TearDown() OVERRIDE {
129 sync_engine_.reset(); 130 sync_engine_.reset();
130 extension_service_.reset(); 131 extension_service_.reset();
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 base::Bind(&SyncEngineTest::CheckServiceState, 375 base::Bind(&SyncEngineTest::CheckServiceState,
375 AsWeakPtr(), 376 AsWeakPtr(),
376 SYNC_STATUS_OK, 377 SYNC_STATUS_OK,
377 REMOTE_SERVICE_OK)); 378 REMOTE_SERVICE_OK));
378 379
379 base::RunLoop().RunUntilIdle(); 380 base::RunLoop().RunUntilIdle();
380 } 381 }
381 382
382 } // namespace drive_backend 383 } // namespace drive_backend
383 } // namespace sync_file_system 384 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698