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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/profiles/profile_window.h" 9 #include "chrome/browser/profiles/profile_window.h"
10 #include "chrome/browser/profiles/profiles_state.h" 10 #include "chrome/browser/profiles/profiles_state.h"
(...skipping 14 matching lines...) Expand all
25 public testing::WithParamInterface<bool> { 25 public testing::WithParamInterface<bool> {
26 public: 26 public:
27 UserManagerUIBrowserTest() {} 27 UserManagerUIBrowserTest() {}
28 28
29 protected: 29 protected:
30 void SetUp() override { 30 void SetUp() override {
31 InProcessBrowserTest::SetUp(); 31 InProcessBrowserTest::SetUp();
32 DCHECK(switches::IsNewAvatarMenu()); 32 DCHECK(switches::IsNewAvatarMenu());
33 } 33 }
34 34
35 void SetUpCommandLine(CommandLine* command_line) override { 35 void SetUpCommandLine(base::CommandLine* command_line) override {
36 switches::EnableNewAvatarMenuForTesting(command_line); 36 switches::EnableNewAvatarMenuForTesting(command_line);
37 } 37 }
38 }; 38 };
39 39
40 IN_PROC_BROWSER_TEST_F(UserManagerUIBrowserTest, PageLoads) { 40 IN_PROC_BROWSER_TEST_F(UserManagerUIBrowserTest, PageLoads) {
41 ui_test_utils::NavigateToURL( 41 ui_test_utils::NavigateToURL(
42 browser(), GURL(chrome::kChromeUIUserManagerURL)); 42 browser(), GURL(chrome::kChromeUIUserManagerURL));
43 content::WebContents* web_contents = 43 content::WebContents* web_contents =
44 browser()->tab_strip_model()->GetActiveWebContents(); 44 browser()->tab_strip_model()->GetActiveWebContents();
45 45
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::UTF16ToUTF8(profile_name).c_str()); 83 base::UTF16ToUTF8(profile_name).c_str());
84 bool result = content::ExecuteScript(web_contents, launch_js); 84 bool result = content::ExecuteScript(web_contents, launch_js);
85 EXPECT_TRUE(result); 85 EXPECT_TRUE(result);
86 base::RunLoop().RunUntilIdle(); 86 base::RunLoop().RunUntilIdle();
87 87
88 content::WebContents* about_chrome_contents = 88 content::WebContents* about_chrome_contents =
89 browser()->tab_strip_model()->GetActiveWebContents(); 89 browser()->tab_strip_model()->GetActiveWebContents();
90 GURL current_URL = about_chrome_contents->GetVisibleURL(); 90 GURL current_URL = about_chrome_contents->GetVisibleURL();
91 EXPECT_EQ(GURL(chrome::kChromeUIUberURL), current_URL); 91 EXPECT_EQ(GURL(chrome::kChromeUIUberURL), current_URL);
92 } 92 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ('k') | chrome/browser/ui/webui/version_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698