| 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 <sstream> | 5 #include <sstream> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "chrome/browser/net/url_request_failed_dns_job.h" | 12 #include "chrome/browser/net/url_request_failed_dns_job.h" |
| 13 #include "chrome/browser/net/url_request_mock_http_job.h" | 13 #include "chrome/browser/net/url_request_mock_http_job.h" |
| 14 #include "chrome/common/chrome_switches.h" | |
| 15 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/test/automation/browser_proxy.h" | 15 #include "chrome/test/automation/browser_proxy.h" |
| 17 #include "chrome/test/automation/tab_proxy.h" | 16 #include "chrome/test/automation/tab_proxy.h" |
| 18 #include "chrome/test/ui/ui_test.h" | 17 #include "chrome/test/ui/ui_test.h" |
| 19 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
| 20 #include "net/test/test_server.h" | 19 #include "net/test/test_server.h" |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 class ResourceDispatcherTest : public UITest { | 23 class ResourceDispatcherTest : public UITest { |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 GURL broken_url("chrome://theme"); | 325 GURL broken_url("chrome://theme"); |
| 327 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url)); | 326 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url)); |
| 328 | 327 |
| 329 // Make sure the navigation finishes. | 328 // Make sure the navigation finishes. |
| 330 std::wstring tab_title; | 329 std::wstring tab_title; |
| 331 EXPECT_TRUE(tab->GetTabTitle(&tab_title)); | 330 EXPECT_TRUE(tab->GetTabTitle(&tab_title)); |
| 332 EXPECT_EQ(L"chrome://theme/ is not available", tab_title); | 331 EXPECT_EQ(L"chrome://theme/ is not available", tab_title); |
| 333 } | 332 } |
| 334 | 333 |
| 335 } // namespace | 334 } // namespace |
| OLD | NEW |