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

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

Issue 881203003: Suppress sequence checks in SyncFileSystem on the shutdown phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +param comment Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <algorithm> 5 #include <algorithm>
6 #include <stack> 6 #include <stack>
7 7
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 file_task_runner_.get())); 111 file_task_runner_.get()));
112 112
113 fake_drive_service_helper_.reset(new FakeDriveServiceHelper( 113 fake_drive_service_helper_.reset(new FakeDriveServiceHelper(
114 drive_service.get(), uploader.get(), 114 drive_service.get(), uploader.get(),
115 kSyncRootFolderTitle)); 115 kSyncRootFolderTitle));
116 116
117 remote_sync_service_.reset( 117 remote_sync_service_.reset(
118 new SyncEngine(base::ThreadTaskRunnerHandle::Get(), // ui_task_runner 118 new SyncEngine(base::ThreadTaskRunnerHandle::Get(), // ui_task_runner
119 worker_task_runner_.get(), 119 worker_task_runner_.get(),
120 drive_task_runner.get(), 120 drive_task_runner.get(),
121 worker_pool.get(),
121 base_dir_.path(), 122 base_dir_.path(),
122 nullptr, // task_logger 123 nullptr, // task_logger
123 nullptr, // notification_manager 124 nullptr, // notification_manager
124 nullptr, // extension_service 125 nullptr, // extension_service
125 nullptr, // signin_manager 126 nullptr, // signin_manager
126 nullptr, // token_service 127 nullptr, // token_service
127 nullptr, // request_context 128 nullptr, // request_context
128 nullptr, // drive_service 129 nullptr, // drive_service
129 in_memory_env_.get())); 130 in_memory_env_.get()));
130 remote_sync_service_->AddServiceObserver(this); 131 remote_sync_service_->AddServiceObserver(this);
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 1721
1721 EXPECT_EQ(1u, CountApp()); 1722 EXPECT_EQ(1u, CountApp());
1722 EXPECT_EQ(1u, CountLocalFile(app_id)); 1723 EXPECT_EQ(1u, CountLocalFile(app_id));
1723 1724
1724 EXPECT_EQ(2u, CountMetadata()); 1725 EXPECT_EQ(2u, CountMetadata());
1725 EXPECT_EQ(2u, CountTracker()); 1726 EXPECT_EQ(2u, CountTracker());
1726 } 1727 }
1727 1728
1728 } // namespace drive_backend 1729 } // namespace drive_backend
1729 } // namespace sync_file_system 1730 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698