| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "chrome/browser/url_fixer_upper.h" | 7 #include "chrome/browser/net/url_fixer_upper.h" |
| 8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/test/automation/tab_proxy.h" | 9 #include "chrome/test/automation/tab_proxy.h" |
| 10 #include "chrome/test/automation/browser_proxy.h" | 10 #include "chrome/test/automation/browser_proxy.h" |
| 11 #include "chrome/test/ui/ui_test.h" | 11 #include "chrome/test/ui/ui_test.h" |
| 12 #include "net/url_request/url_request_unittest.h" | 12 #include "net/url_request/url_request_unittest.h" |
| 13 | 13 |
| 14 using std::wstring; | 14 using std::wstring; |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 EXPECT_FALSE(tab->NeedsAuth()); | 164 EXPECT_FALSE(tab->NeedsAuth()); |
| 165 | 165 |
| 166 // Now test that cancelling works as expected. | 166 // Now test that cancelling works as expected. |
| 167 NavigateTab(tab.get(), server->TestServerPageW(L"auth-basic")); | 167 NavigateTab(tab.get(), server->TestServerPageW(L"auth-basic")); |
| 168 EXPECT_TRUE(tab->NeedsAuth()); | 168 EXPECT_TRUE(tab->NeedsAuth()); |
| 169 EXPECT_TRUE(tab->CancelAuth()); | 169 EXPECT_TRUE(tab->CancelAuth()); |
| 170 EXPECT_FALSE(tab->NeedsAuth()); | 170 EXPECT_FALSE(tab->NeedsAuth()); |
| 171 EXPECT_EQ(L"Denied: no auth", GetActiveTabTitle()); | 171 EXPECT_EQ(L"Denied: no auth", GetActiveTabTitle()); |
| 172 } | 172 } |
| 173 | 173 |
| OLD | NEW |