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

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

Issue 5228004: Switch the about:gpu implementation from an about handler to dom_ui.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "chrome/browser/browser_about_handler.h" 7 #include "chrome/browser/browser_about_handler.h"
8 #include "chrome/common/about_handler.h" 8 #include "chrome/common/about_handler.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 24 matching lines...) Expand all
35 false, 35 false,
36 true 36 true
37 }, 37 },
38 { 38 {
39 GURL(std::string(chrome::kAboutNetInternalsURL) + "/venus"), 39 GURL(std::string(chrome::kAboutNetInternalsURL) + "/venus"),
40 GURL(std::string(chrome::kNetworkViewInternalsURL) + "venus"), 40 GURL(std::string(chrome::kNetworkViewInternalsURL) + "venus"),
41 false, 41 false,
42 true 42 true
43 }, 43 },
44 { 44 {
45 GURL(std::string(chrome::kAboutGpuURL) + "/jupiter"),
46 GURL(std::string(chrome::kGpuInternalsURL) + "jupiter"),
47 false,
48 true
49 },
50 {
45 GURL(std::string(chrome::kAboutAppCacheInternalsURL) + "/earth"), 51 GURL(std::string(chrome::kAboutAppCacheInternalsURL) + "/earth"),
46 GURL(std::string(chrome::kAppCacheViewInternalsURL) + "earth"), 52 GURL(std::string(chrome::kAppCacheViewInternalsURL) + "earth"),
47 false, 53 false,
48 true 54 true
49 }, 55 },
50 { 56 {
51 GURL(chrome::kAboutPluginsURL), 57 GURL(chrome::kAboutPluginsURL),
52 GURL(chrome::kChromeUIPluginsURL), 58 GURL(chrome::kChromeUIPluginsURL),
53 false, 59 false,
54 true 60 true
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 chrome_about_handler::WillHandle(url)); 97 chrome_about_handler::WillHandle(url));
92 EXPECT_EQ(test_data[i].browser_handled, 98 EXPECT_EQ(test_data[i].browser_handled,
93 WillHandleBrowserAboutURL(&url, NULL)); 99 WillHandleBrowserAboutURL(&url, NULL));
94 EXPECT_EQ(test_data[i].result_url, url); 100 EXPECT_EQ(test_data[i].result_url, url);
95 } 101 }
96 102
97 // Crash the browser process for about:inducebrowsercrashforrealz. 103 // Crash the browser process for about:inducebrowsercrashforrealz.
98 GURL url(chrome::kAboutBrowserCrash); 104 GURL url(chrome::kAboutBrowserCrash);
99 EXPECT_DEATH(WillHandleBrowserAboutURL(&url, NULL), ""); 105 EXPECT_DEATH(WillHandleBrowserAboutURL(&url, NULL), "");
100 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698