| OLD | NEW |
| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
| 12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 14 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/sync/chrome_sync_client.h" | 16 #include "chrome/browser/sync/chrome_sync_client.h" |
| 16 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 17 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
| 17 #include "chrome/browser/sync/test/integration/preferences_helper.h" | 18 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 ASSERT_TRUE(rollback_checker.Wait()); | 437 ASSERT_TRUE(rollback_checker.Wait()); |
| 437 SyncBackendStoppedChecker shutdown_checker(GetSyncService(0)); | 438 SyncBackendStoppedChecker shutdown_checker(GetSyncService(0)); |
| 438 ASSERT_TRUE(shutdown_checker.Wait()); | 439 ASSERT_TRUE(shutdown_checker.Wait()); |
| 439 | 440 |
| 440 // Verify bookmarks are unchanged. | 441 // Verify bookmarks are unchanged. |
| 441 ASSERT_EQ(3, sub_folder->child_count()); | 442 ASSERT_EQ(3, sub_folder->child_count()); |
| 442 ASSERT_EQ(GURL(kUrl1), sub_folder->GetChild(0)->url()); | 443 ASSERT_EQ(GURL(kUrl1), sub_folder->GetChild(0)->url()); |
| 443 ASSERT_EQ(GURL(kUrl2), sub_folder->GetChild(1)->url()); | 444 ASSERT_EQ(GURL(kUrl2), sub_folder->GetChild(1)->url()); |
| 444 ASSERT_EQ(GURL(kUrl3), sub_folder->GetChild(2)->url()); | 445 ASSERT_EQ(GURL(kUrl3), sub_folder->GetChild(2)->url()); |
| 445 } | 446 } |
| OLD | NEW |