| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/string_number_conversions.h" | 5 #include "base/string_number_conversions.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/browser_signin.h" | 8 #include "chrome/browser/browser_signin.h" |
| 9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
| 10 #include "chrome/browser/extensions/extension_test_message_listener.h" | 10 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 11 #include "chrome/browser/extensions/extension_webstore_private_api.h" | 11 #include "chrome/browser/extensions/extension_webstore_private_api.h" |
| 12 #include "chrome/browser/net/gaia/token_service.h" | 12 #include "chrome/browser/net/gaia/token_service.h" |
| 13 #include "chrome/browser/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
| 14 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/common/net/gaia/gaia_constants.h" | 17 #include "chrome/common/net/gaia/gaia_constants.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/test/ui_test_utils.h" | 19 #include "chrome/test/ui_test_utils.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "net/base/mock_host_resolver.h" | 21 #include "net/base/mock_host_resolver.h" |
| 22 | 22 |
| 23 using chrome::kHttpScheme; | 23 using chrome::kHttpScheme; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 RunLoginTest("browser_login/expect_nonempty.html", | 187 RunLoginTest("browser_login/expect_nonempty.html", |
| 188 "foo@bar.com", false, ""); | 188 "foo@bar.com", false, ""); |
| 189 | 189 |
| 190 RunLoginTest("browser_login/prompt_no_preferred.html", "", true, ""); | 190 RunLoginTest("browser_login/prompt_no_preferred.html", "", true, ""); |
| 191 | 191 |
| 192 RunLoginTest("browser_login/prompt_preferred.html", "", true, "foo@bar.com"); | 192 RunLoginTest("browser_login/prompt_preferred.html", "", true, "foo@bar.com"); |
| 193 | 193 |
| 194 RunLoginTest("browser_login/prompt_login_fails.html", | 194 RunLoginTest("browser_login/prompt_login_fails.html", |
| 195 "", false, "foo@bar.com"); | 195 "", false, "foo@bar.com"); |
| 196 } | 196 } |
| OLD | NEW |