OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "chrome/browser/browser_about_handler.h" | 10 #include "chrome/browser/browser_about_handler.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 } test_data[] = { | 36 } test_data[] = { |
37 { | 37 { |
38 GURL("http://google.com"), | 38 GURL("http://google.com"), |
39 GURL("http://google.com") | 39 GURL("http://google.com") |
40 }, | 40 }, |
41 { | 41 { |
42 GURL(url::kAboutBlankURL), | 42 GURL(url::kAboutBlankURL), |
43 GURL(url::kAboutBlankURL) | 43 GURL(url::kAboutBlankURL) |
44 }, | 44 }, |
45 { | 45 { |
46 GURL(chrome_prefix + chrome::kChromeUIMemoryHost), | |
47 GURL(chrome_prefix + chrome::kChromeUIMemoryHost) | |
48 }, | |
49 { | |
50 GURL(chrome_prefix + chrome::kChromeUIDefaultHost), | 46 GURL(chrome_prefix + chrome::kChromeUIDefaultHost), |
51 GURL(chrome_prefix + chrome::kChromeUIVersionHost) | 47 GURL(chrome_prefix + chrome::kChromeUIVersionHost) |
52 }, | 48 }, |
53 { | 49 { |
54 GURL(chrome_prefix + chrome::kChromeUIAboutHost), | 50 GURL(chrome_prefix + chrome::kChromeUIAboutHost), |
55 GURL(chrome_prefix + chrome::kChromeUIChromeURLsHost) | 51 GURL(chrome_prefix + chrome::kChromeUIChromeURLsHost) |
56 }, | 52 }, |
57 { | 53 { |
58 GURL(chrome_prefix + chrome::kChromeUICacheHost), | 54 GURL(chrome_prefix + chrome::kChromeUICacheHost), |
59 GURL(chrome_prefix + content::kChromeUINetworkViewCacheHost) | 55 GURL(chrome_prefix + content::kChromeUINetworkViewCacheHost) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // virtual URL. | 93 // virtual URL. |
98 GURL rewritten_url("http://foo/"); | 94 GURL rewritten_url("http://foo/"); |
99 | 95 |
100 TestingProfile profile; | 96 TestingProfile profile; |
101 scoped_ptr<NavigationEntry> entry(NavigationController::CreateNavigationEntry( | 97 scoped_ptr<NavigationEntry> entry(NavigationController::CreateNavigationEntry( |
102 url, Referrer(), ui::PAGE_TRANSITION_RELOAD, false, std::string(), | 98 url, Referrer(), ui::PAGE_TRANSITION_RELOAD, false, std::string(), |
103 &profile)); | 99 &profile)); |
104 EXPECT_EQ(fixed_url, entry->GetVirtualURL()); | 100 EXPECT_EQ(fixed_url, entry->GetVirtualURL()); |
105 EXPECT_EQ(rewritten_url, entry->GetURL()); | 101 EXPECT_EQ(rewritten_url, entry->GetURL()); |
106 } | 102 } |
OLD | NEW |