OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/ui/ui_test.h" | 5 #include "chrome/test/ui/ui_test.h" |
6 | 6 |
7 #include "chrome/app/chrome_dll_resource.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/browser_thread.h" | 8 #include "chrome/browser/browser_thread.h" |
9 #include "chrome/browser/dom_ui/new_tab_ui.h" | 9 #include "chrome/browser/dom_ui/new_tab_ui.h" |
10 #include "chrome/browser/prefs/pref_value_store.h" | 10 #include "chrome/browser/prefs/pref_value_store.h" |
11 #include "chrome/browser/sync/signin_manager.h" | 11 #include "chrome/browser/sync/signin_manager.h" |
12 #include "chrome/common/json_pref_store.h" | 12 #include "chrome/common/json_pref_store.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "chrome/test/automation/browser_proxy.h" | 14 #include "chrome/test/automation/browser_proxy.h" |
15 #include "chrome/test/automation/tab_proxy.h" | 15 #include "chrome/test/automation/tab_proxy.h" |
16 #include "chrome/test/automation/window_proxy.h" | 16 #include "chrome/test/automation/window_proxy.h" |
17 #include "chrome/test/testing_pref_service.h" | 17 #include "chrome/test/testing_pref_service.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 ASSERT_EQ(0, prefs->GetInteger(prefs::kNTPPrefVersion)); | 120 ASSERT_EQ(0, prefs->GetInteger(prefs::kNTPPrefVersion)); |
121 | 121 |
122 bool migrated = NewTabUI::UpdateUserPrefsVersion(prefs.get()); | 122 bool migrated = NewTabUI::UpdateUserPrefsVersion(prefs.get()); |
123 ASSERT_TRUE(migrated); | 123 ASSERT_TRUE(migrated); |
124 ASSERT_EQ(NewTabUI::current_pref_version(), | 124 ASSERT_EQ(NewTabUI::current_pref_version(), |
125 prefs->GetInteger(prefs::kNTPPrefVersion)); | 125 prefs->GetInteger(prefs::kNTPPrefVersion)); |
126 | 126 |
127 migrated = NewTabUI::UpdateUserPrefsVersion(prefs.get()); | 127 migrated = NewTabUI::UpdateUserPrefsVersion(prefs.get()); |
128 ASSERT_FALSE(migrated); | 128 ASSERT_FALSE(migrated); |
129 } | 129 } |
OLD | NEW |