OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/path_service.h" | 6 #include "base/path_service.h" |
7 #include "chrome/browser/chrome_browser_main.h" | 7 #include "chrome/browser/chrome_browser_main.h" |
8 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 8 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
9 #include "chrome/browser/chrome_content_browser_client.h" | 9 #include "chrome/browser/chrome_content_browser_client.h" |
10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 10 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return http_response.Pass(); | 180 return http_response.Pass(); |
181 } | 181 } |
182 | 182 |
183 scoped_ptr<TestContentBrowserClient> content_browser_client_; | 183 scoped_ptr<TestContentBrowserClient> content_browser_client_; |
184 content::ContentBrowserClient* original_content_browser_client_; | 184 content::ContentBrowserClient* original_content_browser_client_; |
185 std::string service_login_response_; | 185 std::string service_login_response_; |
186 HttpServer* test_server_; // cant use scoped_ptr because destructor | 186 HttpServer* test_server_; // cant use scoped_ptr because destructor |
187 // needs UI thread. | 187 // needs UI thread. |
188 }; | 188 }; |
189 | 189 |
190 IN_PROC_BROWSER_TEST_F(OobeTest, NewUser) { | 190 // Temporally disabled because of a race: crbug.com/178009 |
| 191 IN_PROC_BROWSER_TEST_F(OobeTest, DISABLED_NewUser) { |
191 chromeos::WizardController::SkipPostLoginScreensForTesting(); | 192 chromeos::WizardController::SkipPostLoginScreensForTesting(); |
192 chromeos::WizardController* wizard_controller = | 193 chromeos::WizardController* wizard_controller = |
193 chromeos::WizardController::default_controller(); | 194 chromeos::WizardController::default_controller(); |
194 CHECK(wizard_controller); | 195 CHECK(wizard_controller); |
195 wizard_controller->SkipToLoginForTesting(); | 196 wizard_controller->SkipToLoginForTesting(); |
196 | 197 |
197 scoped_refptr<content::MessageLoopRunner> runner = | 198 scoped_refptr<content::MessageLoopRunner> runner = |
198 new content::MessageLoopRunner; | 199 new content::MessageLoopRunner; |
199 content_browser_client_->browser_main_extra_parts_->set_quit_task( | 200 content_browser_client_->browser_main_extra_parts_->set_quit_task( |
200 runner->QuitClosure()); | 201 runner->QuitClosure()); |
201 runner->Run(); | 202 runner->Run(); |
202 } | 203 } |
203 | 204 |
204 } | 205 } |
OLD | NEW |