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

Side by Side Diff: chrome/browser/browser_about_handler_unittest.cc

Issue 1722493002: Project Eraser: Kill chrome://memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome_browser_ui.gypi. Created 4 years, 9 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
« no previous file with comments | « chrome/app/nibs/TaskManager.xib ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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 }
OLDNEW
« no previous file with comments | « chrome/app/nibs/TaskManager.xib ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698