OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // TODO(akalin): Rename this file to migration_test.cc. | 5 // TODO(akalin): Rename this file to migration_test.cc. |
6 | 6 |
| 7 #include "base/compiler_specific.h" |
7 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 8 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/sync/profile_sync_service_harness.h" | 10 #include "chrome/browser/sync/profile_sync_service_harness.h" |
10 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 11 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
11 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
12 #include "chrome/browser/sync/test/integration/preferences_helper.h" | 13 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
13 #include "chrome/browser/translate/translate_prefs.h" | 14 #include "chrome/browser/translate/translate_prefs.h" |
14 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
15 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
16 | 17 |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 448 |
448 // Phase 5: Verify that preferences can still be synchronized. | 449 // Phase 5: Verify that preferences can still be synchronized. |
449 VerifyPrefSync(); | 450 VerifyPrefSync(); |
450 | 451 |
451 // Phase 6: Verify that sessions are registered and enabled. | 452 // Phase 6: Verify that sessions are registered and enabled. |
452 ASSERT_TRUE(GetClient(0)->IsTypeRunning(syncable::SESSIONS)); | 453 ASSERT_TRUE(GetClient(0)->IsTypeRunning(syncable::SESSIONS)); |
453 ASSERT_TRUE(GetClient(0)->IsTypePreferred(syncable::SESSIONS)); | 454 ASSERT_TRUE(GetClient(0)->IsTypePreferred(syncable::SESSIONS)); |
454 } | 455 } |
455 | 456 |
456 } // namespace | 457 } // namespace |
OLD | NEW |