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

Side by Side Diff: chrome/browser/dom_ui/bookmarks_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/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "chrome/test/automation/browser_proxy.h" 9 #include "chrome/test/automation/browser_proxy.h"
10 #include "chrome/test/automation/tab_proxy.h" 10 #include "chrome/test/automation/tab_proxy.h"
11 #include "chrome/test/automation/window_proxy.h" 11 #include "chrome/test/automation/window_proxy.h"
12 12
13 class BookmarksUITest : public UITest { 13 class BookmarksUITest : public UITest {
14 public: 14 public:
15 BookmarksUITest() { 15 BookmarksUITest() {
16 dom_automation_enabled_ = true; 16 dom_automation_enabled_ = true;
17 } 17 }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ASSERT_TRUE(browser->RunCommand(IDC_SHOW_BOOKMARK_MANAGER)); 141 ASSERT_TRUE(browser->RunCommand(IDC_SHOW_BOOKMARK_MANAGER));
142 ASSERT_TRUE(browser->RunCommand(IDC_SHOW_BOOKMARK_MANAGER)); 142 ASSERT_TRUE(browser->RunCommand(IDC_SHOW_BOOKMARK_MANAGER));
143 ASSERT_TRUE(browser->GetTabCount(&tab_count)); 143 ASSERT_TRUE(browser->GetTabCount(&tab_count));
144 ASSERT_EQ(2, tab_count); 144 ASSERT_EQ(2, tab_count);
145 } 145 }
146 146
147 TEST_F(BookmarksUITest, BookmarksLoaded) { 147 TEST_F(BookmarksUITest, BookmarksLoaded) {
148 scoped_refptr<TabProxy> tab = GetBookmarksUITab(); 148 scoped_refptr<TabProxy> tab = GetBookmarksUITab();
149 ASSERT_TRUE(tab.get()); 149 ASSERT_TRUE(tab.get());
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698