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

Side by Side Diff: chrome/browser/dom_ui/new_tab_ui_uitest.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698