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

Side by Side Diff: chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc

Issue 16742003: Use a direct include of strings headers in chrome/browser/a*-c*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
11 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 11 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
12 #include "chrome/browser/tab_contents/render_view_context_menu.h" 12 #include "chrome/browser/tab_contents/render_view_context_menu.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
17 #include "content/public/browser/navigation_controller.h" 17 #include "content/public/browser/navigation_controller.h"
18 #include "content/public/browser/navigation_entry.h" 18 #include "content/public/browser/navigation_entry.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ASSERT_TRUE(test_server()->Start()); 105 ASSERT_TRUE(test_server()->Start());
106 GURL handler_url = test_server()->GetURL("files/custom_handler_foo.html"); 106 GURL handler_url = test_server()->GetURL("files/custom_handler_foo.html");
107 AddProtocolHandler("foo", handler_url, 107 AddProtocolHandler("foo", handler_url,
108 UTF8ToUTF16(std::string("Test foo Handler"))); 108 UTF8ToUTF16(std::string("Test foo Handler")));
109 109
110 ui_test_utils::NavigateToURL(browser(), GURL("foo:test")); 110 ui_test_utils::NavigateToURL(browser(), GURL("foo:test"));
111 111
112 ASSERT_EQ(handler_url, 112 ASSERT_EQ(handler_url,
113 browser()->tab_strip_model()->GetActiveWebContents()->GetURL()); 113 browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
114 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_upload_list_win.cc ('k') | chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698