OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "chrome/browser/net/url_request_failed_dns_job.h" | |
14 #include "chrome/browser/net/url_request_mock_http_job.h" | |
15 #include "chrome/test/automation/browser_proxy.h" | 13 #include "chrome/test/automation/browser_proxy.h" |
16 #include "chrome/test/automation/tab_proxy.h" | 14 #include "chrome/test/automation/tab_proxy.h" |
17 #include "chrome/test/ui/ui_test.h" | 15 #include "chrome/test/ui/ui_test.h" |
| 16 #include "content/browser/net/url_request_failed_dns_job.h" |
| 17 #include "content/browser/net/url_request_mock_http_job.h" |
18 #include "content/common/test_url_constants.h" | 18 #include "content/common/test_url_constants.h" |
19 #include "content/common/url_constants.h" | 19 #include "content/common/url_constants.h" |
20 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
21 #include "net/test/test_server.h" | 21 #include "net/test/test_server.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class ResourceDispatcherTest : public UITest { | 25 class ResourceDispatcherTest : public UITest { |
26 public: | 26 public: |
27 void CheckTitleTest(const std::string& file, | 27 void CheckTitleTest(const std::string& file, |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 GURL broken_url("chrome://theme"); | 392 GURL broken_url("chrome://theme"); |
393 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url)); | 393 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url)); |
394 | 394 |
395 // Make sure the navigation finishes. | 395 // Make sure the navigation finishes. |
396 std::wstring tab_title; | 396 std::wstring tab_title; |
397 EXPECT_TRUE(tab->GetTabTitle(&tab_title)); | 397 EXPECT_TRUE(tab->GetTabTitle(&tab_title)); |
398 EXPECT_EQ(L"chrome://theme/ is not available", tab_title); | 398 EXPECT_EQ(L"chrome://theme/ is not available", tab_title); |
399 } | 399 } |
400 | 400 |
401 } // namespace | 401 } // namespace |
OLD | NEW |