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

Side by Side Diff: chrome/browser/sync/test/integration/single_client_directory_sync_test.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/location.h" 5 #include "base/location.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" 13 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
14 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h" 14 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
15 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 15 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
16 #include "chrome/browser/sync/test/integration/sync_test.h" 16 #include "chrome/browser/sync/test/integration/sync_test.h"
17 #include "components/browser_sync/browser/profile_sync_service.h" 17 #include "components/browser_sync/browser/profile_sync_service.h"
18 #include "components/sync/syncable/directory.h"
19 #include "components/sync/test/directory_backing_store_corruption_testing.h"
18 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
19 #include "sync/syncable/directory.h"
20 #include "sync/test/directory_backing_store_corruption_testing.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 using content::BrowserThread; 23 using content::BrowserThread;
24 using sync_integration_test_util::AwaitCommitActivityCompletion; 24 using sync_integration_test_util::AwaitCommitActivityCompletion;
25 using syncer::syncable::corruption_testing::kNumEntriesRequiredForCorruption; 25 using syncer::syncable::corruption_testing::kNumEntriesRequiredForCorruption;
26 using syncer::syncable::corruption_testing::CorruptDatabase; 26 using syncer::syncable::corruption_testing::CorruptDatabase;
27 27
28 class SingleClientDirectorySyncTest : public SyncTest { 28 class SingleClientDirectorySyncTest : public SyncTest {
29 public: 29 public:
30 SingleClientDirectorySyncTest() : SyncTest(SINGLE_CLIENT) {} 30 SingleClientDirectorySyncTest() : SyncTest(SINGLE_CLIENT) {}
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 SyncUnrecoverableErrorChecker checker(sync_service); 131 SyncUnrecoverableErrorChecker checker(sync_service);
132 checker.Wait(); 132 checker.Wait();
133 ASSERT_TRUE(!checker.TimedOut()); 133 ASSERT_TRUE(!checker.TimedOut());
134 ASSERT_TRUE(sync_service->HasUnrecoverableError()); 134 ASSERT_TRUE(sync_service->HasUnrecoverableError());
135 135
136 // Wait until the sync loop has processed any existing tasks and see that the 136 // Wait until the sync loop has processed any existing tasks and see that the
137 // directory no longer exists. 137 // directory no longer exists.
138 ASSERT_TRUE(WaitForExistingTasksOnLoop(sync_loop)); 138 ASSERT_TRUE(WaitForExistingTasksOnLoop(sync_loop));
139 ASSERT_FALSE(base::DirectoryExists(directory_path)); 139 ASSERT_FALSE(base::DirectoryExists(directory_path));
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698