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

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

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/dom_ui/dom_ui_factory.cc » ('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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/dom_ui/dom_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698