| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/profiles/profile_window.h" | 5 #include "chrome/browser/profiles/profile_window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 expected_path, | 282 expected_path, |
| 283 profiles::USER_MANAGER_NO_TUTORIAL, | 283 profiles::USER_MANAGER_NO_TUTORIAL, |
| 284 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION, | 284 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION, |
| 285 base::Bind(&ProfileWindowWebUIBrowserTest::OnSystemProfileCreated, | 285 base::Bind(&ProfileWindowWebUIBrowserTest::OnSystemProfileCreated, |
| 286 base::Unretained(this), | 286 base::Unretained(this), |
| 287 &url_to_test, | 287 &url_to_test, |
| 288 run_loop.QuitClosure())); | 288 run_loop.QuitClosure())); |
| 289 run_loop.Run(); | 289 run_loop.Run(); |
| 290 | 290 |
| 291 ui_test_utils::NavigateToURL(browser(), GURL(url_to_test)); | 291 ui_test_utils::NavigateToURL(browser(), GURL(url_to_test)); |
| 292 EXPECT_TRUE(RunJavascriptTest( | 292 EXPECT_TRUE(RunJavascriptTest("testPodFocused", |
| 293 "testPodFocused", new base::StringValue(expected_path.AsUTF8Unsafe()))); | 293 new base::Value(expected_path.AsUTF8Unsafe()))); |
| 294 } | 294 } |
| 295 | 295 |
| 296 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 296 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| OLD | NEW |