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

Side by Side Diff: chrome/browser/browser_commands_unittest.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/app/chrome_dll_resource.h" 5 #include "chrome/app/chrome_command_ids.h"
6 #include "chrome/browser/bookmarks/bookmark_model.h" 6 #include "chrome/browser/bookmarks/bookmark_model.h"
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_list.h" 8 #include "chrome/browser/browser_list.h"
9 #include "chrome/browser/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 10 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/navigation_entry.h" 11 #include "chrome/browser/tab_contents/navigation_entry.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "chrome/test/browser_with_test_window_test.h" 14 #include "chrome/test/browser_with_test_window_test.h"
15 #include "chrome/test/testing_profile.h" 15 #include "chrome/test/testing_profile.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ASSERT_EQ(3, browser()->selected_index()); 161 ASSERT_EQ(3, browser()->selected_index());
162 ASSERT_EQ(url1, browser()->GetSelectedTabContents()->GetURL()); 162 ASSERT_EQ(url1, browser()->GetSelectedTabContents()->GetURL());
163 163
164 // Same thing again for forward. 164 // Same thing again for forward.
165 // TODO(brettw) bug 11055: see the comment above about why we need this. 165 // TODO(brettw) bug 11055: see the comment above about why we need this.
166 CommitPendingLoad(&browser()->GetSelectedTabContents()->controller()); 166 CommitPendingLoad(&browser()->GetSelectedTabContents()->controller());
167 browser()->GoForward(NEW_FOREGROUND_TAB); 167 browser()->GoForward(NEW_FOREGROUND_TAB);
168 ASSERT_EQ(4, browser()->selected_index()); 168 ASSERT_EQ(4, browser()->selected_index());
169 ASSERT_EQ(url2, browser()->GetSelectedTabContents()->GetURL()); 169 ASSERT_EQ(url2, browser()->GetSelectedTabContents()->GetURL());
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698