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

Side by Side Diff: chrome/browser/ui/views/toolbar/toolbar_view_browsertest.cc

Issue 386283002: Move bookmark_utils into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/ui/views/toolbar/toolbar_view.h" 5 #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #else 101 #else
102 #define MAYBE_ToolbarCycleFocusWithBookmarkBar ToolbarCycleFocusWithBookmarkBar 102 #define MAYBE_ToolbarCycleFocusWithBookmarkBar ToolbarCycleFocusWithBookmarkBar
103 #endif 103 #endif
104 IN_PROC_BROWSER_TEST_F(ToolbarViewTest, 104 IN_PROC_BROWSER_TEST_F(ToolbarViewTest,
105 MAYBE_ToolbarCycleFocusWithBookmarkBar) { 105 MAYBE_ToolbarCycleFocusWithBookmarkBar) {
106 CommandUpdater* updater = browser()->command_controller()->command_updater(); 106 CommandUpdater* updater = browser()->command_controller()->command_updater();
107 updater->ExecuteCommand(IDC_SHOW_BOOKMARK_BAR); 107 updater->ExecuteCommand(IDC_SHOW_BOOKMARK_BAR);
108 108
109 BookmarkModel* model = 109 BookmarkModel* model =
110 BookmarkModelFactory::GetForProfile(browser()->profile()); 110 BookmarkModelFactory::GetForProfile(browser()->profile());
111 bookmark_utils::AddIfNotBookmarked( 111 bookmarks::AddIfNotBookmarked(
112 model, GURL("http://foo.com"), base::ASCIIToUTF16("Foo")); 112 model, GURL("http://foo.com"), base::ASCIIToUTF16("Foo"));
113 113
114 // We want to specifically test the case where the bookmark bar is 114 // We want to specifically test the case where the bookmark bar is
115 // already showing when a window opens, so create a second browser 115 // already showing when a window opens, so create a second browser
116 // window with the same profile. 116 // window with the same profile.
117 Browser* second_browser = CreateBrowser(browser()->profile()); 117 Browser* second_browser = CreateBrowser(browser()->profile());
118 RunToolbarCycleFocusTest(second_browser); 118 RunToolbarCycleFocusTest(second_browser);
119 } 119 }
120 120
121 } // namespace 121 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698