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

Side by Side Diff: chrome/browser/chromeos/login/login_manager_test.h

Issue 574703002: Creating mixin-supporting InProcessBrowserTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: edited .gypi so that it links correctly everywhere where LoginManagerTest appears Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_manager_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/mixin_based_browser_test.h"
10 #include "chrome/browser/chromeos/login/mock_login_utils.h" 11 #include "chrome/browser/chromeos/login/mock_login_utils.h"
11 #include "chrome/browser/chromeos/login/test/js_checker.h" 12 #include "chrome/browser/chromeos/login/test/js_checker.h"
12 #include "chrome/test/base/in_process_browser_test.h"
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } // namespace content 16 } // namespace content
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 class UserContext; 20 class UserContext;
21 21
22 // Base class for Chrome OS out-of-box/login WebUI tests. 22 // Base class for Chrome OS out-of-box/login WebUI tests.
23 // If no special configuration is done launches out-of-box WebUI. 23 // If no special configuration is done launches out-of-box WebUI.
24 // To launch login UI use PRE_* test that will register user(s) and mark 24 // To launch login UI use PRE_* test that will register user(s) and mark
25 // out-of-box as completed. 25 // out-of-box as completed.
26 // Guarantees that WebUI has been initialized by waiting for 26 // Guarantees that WebUI has been initialized by waiting for
27 // NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE notification. 27 // NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE notification.
28 class LoginManagerTest : public InProcessBrowserTest { 28 class LoginManagerTest : public MixinBasedBrowserTest {
29 public: 29 public:
30 explicit LoginManagerTest(bool should_launch_browser); 30 explicit LoginManagerTest(bool should_launch_browser);
31 31
32 // Overriden from InProcessBrowserTest. 32 // Overriden from InProcessBrowserTest.
33 virtual void TearDownOnMainThread() OVERRIDE; 33 virtual void TearDownOnMainThread() OVERRIDE;
34 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; 34 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
35 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; 35 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
36 virtual void SetUpOnMainThread() OVERRIDE; 36 virtual void SetUpOnMainThread() OVERRIDE;
37 37
38 // Registers the user with the given |user_id| on the device. 38 // Registers the user with the given |user_id| on the device.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool should_launch_browser_; 78 bool should_launch_browser_;
79 content::WebContents* web_contents_; 79 content::WebContents* web_contents_;
80 test::JSChecker js_checker_; 80 test::JSChecker js_checker_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); 82 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest);
83 }; 83 };
84 84
85 } // namespace chromeos 85 } // namespace chromeos
86 86
87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698