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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 false, | 59 false, |
60 true | 60 true |
61 }, | 61 }, |
62 { | 62 { |
63 GURL(chrome::kAboutCrashURL), | 63 GURL(chrome::kAboutCrashURL), |
64 GURL(chrome::kAboutCrashURL), | 64 GURL(chrome::kAboutCrashURL), |
65 true, | 65 true, |
66 false | 66 false |
67 }, | 67 }, |
68 { | 68 { |
| 69 GURL(chrome::kAboutKillURL), |
| 70 GURL(chrome::kAboutKillURL), |
| 71 true, |
| 72 false |
| 73 }, |
| 74 { |
69 GURL(chrome::kAboutHangURL), | 75 GURL(chrome::kAboutHangURL), |
70 GURL(chrome::kAboutHangURL), | 76 GURL(chrome::kAboutHangURL), |
71 true, | 77 true, |
72 false | 78 false |
73 }, | 79 }, |
74 { | 80 { |
75 GURL(chrome::kAboutShorthangURL), | 81 GURL(chrome::kAboutShorthangURL), |
76 GURL(chrome::kAboutShorthangURL), | 82 GURL(chrome::kAboutShorthangURL), |
77 true, | 83 true, |
78 false | 84 false |
(...skipping 18 matching lines...) Expand all Loading... |
97 chrome_about_handler::WillHandle(url)); | 103 chrome_about_handler::WillHandle(url)); |
98 EXPECT_EQ(test_data[i].browser_handled, | 104 EXPECT_EQ(test_data[i].browser_handled, |
99 WillHandleBrowserAboutURL(&url, NULL)); | 105 WillHandleBrowserAboutURL(&url, NULL)); |
100 EXPECT_EQ(test_data[i].result_url, url); | 106 EXPECT_EQ(test_data[i].result_url, url); |
101 } | 107 } |
102 | 108 |
103 // Crash the browser process for about:inducebrowsercrashforrealz. | 109 // Crash the browser process for about:inducebrowsercrashforrealz. |
104 GURL url(chrome::kAboutBrowserCrash); | 110 GURL url(chrome::kAboutBrowserCrash); |
105 EXPECT_DEATH(WillHandleBrowserAboutURL(&url, NULL), ""); | 111 EXPECT_DEATH(WillHandleBrowserAboutURL(&url, NULL), ""); |
106 } | 112 } |
OLD | NEW |