Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_uitest.cc

Issue 8276022: Move url_constants.h to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/test/test_timeouts.h" 13 #include "base/test/test_timeouts.h"
14 #include "chrome/test/automation/automation_proxy.h" 14 #include "chrome/test/automation/automation_proxy.h"
15 #include "chrome/test/automation/browser_proxy.h" 15 #include "chrome/test/automation/browser_proxy.h"
16 #include "chrome/test/automation/tab_proxy.h" 16 #include "chrome/test/automation/tab_proxy.h"
17 #include "chrome/test/ui/ui_test.h" 17 #include "chrome/test/ui/ui_test.h"
18 #include "content/browser/net/url_request_failed_dns_job.h" 18 #include "content/browser/net/url_request_failed_dns_job.h"
19 #include "content/browser/net/url_request_mock_http_job.h" 19 #include "content/browser/net/url_request_mock_http_job.h"
20 #include "content/common/test_url_constants.h" 20 #include "content/common/test_url_constants.h"
21 #include "content/common/url_constants.h" 21 #include "content/public/common/url_constants.h"
22 #include "net/base/net_util.h" 22 #include "net/base/net_util.h"
23 #include "net/test/test_server.h" 23 #include "net/test/test_server.h"
24 24
25 namespace { 25 namespace {
26 26
27 class ResourceDispatcherTest : public UITest { 27 class ResourceDispatcherTest : public UITest {
28 public: 28 public:
29 void CheckTitleTest(const std::string& file, 29 void CheckTitleTest(const std::string& file,
30 const std::string& expected_title, 30 const std::string& expected_title,
31 int expected_navigations) { 31 int expected_navigations) {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 GURL broken_url("chrome://theme"); 404 GURL broken_url("chrome://theme");
405 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url)); 405 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(broken_url));
406 406
407 // Make sure the navigation finishes. 407 // Make sure the navigation finishes.
408 std::wstring tab_title; 408 std::wstring tab_title;
409 EXPECT_TRUE(tab->GetTabTitle(&tab_title)); 409 EXPECT_TRUE(tab->GetTabTitle(&tab_title));
410 EXPECT_EQ(L"chrome://theme/ is not available", tab_title); 410 EXPECT_EQ(L"chrome://theme/ is not available", tab_title);
411 } 411 }
412 412
413 } // namespace 413 } // namespace
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/browser/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698