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

Side by Side Diff: chrome/browser/ui/cocoa/view_id_util_browsertest.mm

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/prefs/pref_service.h"
7 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
9 #include "chrome/browser/devtools/devtools_window_testing.h" 8 #include "chrome/browser/devtools/devtools_window_testing.h"
10 #include "chrome/browser/download/download_shelf.h" 9 #include "chrome/browser/download/download_shelf.h"
11 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_commands.h" 12 #include "chrome/browser/ui/browser_commands.h"
14 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
15 #include "chrome/browser/ui/cocoa/view_id_util.h" 14 #include "chrome/browser/ui/cocoa/view_id_util.h"
16 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
17 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" 16 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
20 #include "components/bookmarks/browser/bookmark_model.h" 19 #include "components/bookmarks/browser/bookmark_model.h"
21 #include "components/bookmarks/browser/bookmark_utils.h" 20 #include "components/bookmarks/browser/bookmark_utils.h"
22 #include "components/bookmarks/test/bookmark_test_helpers.h" 21 #include "components/bookmarks/test/bookmark_test_helpers.h"
22 #include "components/prefs/pref_service.h"
23 #include "extensions/common/switches.h" 23 #include "extensions/common/switches.h"
24 24
25 using bookmarks::BookmarkModel; 25 using bookmarks::BookmarkModel;
26 using content::OpenURLParams; 26 using content::OpenURLParams;
27 using content::Referrer; 27 using content::Referrer;
28 28
29 // Basic sanity check of ViewID use on the Mac. 29 // Basic sanity check of ViewID use on the Mac.
30 class ViewIDTest : public InProcessBrowserTest { 30 class ViewIDTest : public InProcessBrowserTest {
31 public: 31 public:
32 ViewIDTest() : root_window_(nil) { 32 ViewIDTest() : root_window_(nil) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 // Open the 11th tab. 126 // Open the 11th tab.
127 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), 127 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL),
128 Referrer(), 128 Referrer(),
129 NEW_BACKGROUND_TAB, 129 NEW_BACKGROUND_TAB,
130 ui::PAGE_TRANSITION_TYPED, 130 ui::PAGE_TRANSITION_TYPED,
131 false)); 131 false));
132 CheckViewID(VIEW_ID_TAB_LAST, true); 132 CheckViewID(VIEW_ID_TAB_LAST, true);
133 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/window_size_autosaver.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698