OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |