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

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

Issue 328713006: Merge 275988 "Move about://-related constants from //content to ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2042/src/
Patch Set: Created 6 years, 6 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/browser_commands_unittest.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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "chrome/browser/browser_about_handler.h" 8 #include "chrome/browser/browser_about_handler.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
(...skipping 10 matching lines...) Expand all
21 chrome_prefix.append(url::kStandardSchemeSeparator); 21 chrome_prefix.append(url::kStandardSchemeSeparator);
22 struct AboutURLTestData { 22 struct AboutURLTestData {
23 GURL test_url; 23 GURL test_url;
24 GURL result_url; 24 GURL result_url;
25 } test_data[] = { 25 } test_data[] = {
26 { 26 {
27 GURL("http://google.com"), 27 GURL("http://google.com"),
28 GURL("http://google.com") 28 GURL("http://google.com")
29 }, 29 },
30 { 30 {
31 GURL(content::kAboutBlankURL), 31 GURL(url::kAboutBlankURL),
32 GURL(content::kAboutBlankURL) 32 GURL(url::kAboutBlankURL)
33 }, 33 },
34 { 34 {
35 GURL(chrome_prefix + chrome::kChromeUIMemoryHost), 35 GURL(chrome_prefix + chrome::kChromeUIMemoryHost),
36 GURL(chrome_prefix + chrome::kChromeUIMemoryHost) 36 GURL(chrome_prefix + chrome::kChromeUIMemoryHost)
37 }, 37 },
38 { 38 {
39 GURL(chrome_prefix + chrome::kChromeUIDefaultHost), 39 GURL(chrome_prefix + chrome::kChromeUIDefaultHost),
40 GURL(chrome_prefix + chrome::kChromeUIVersionHost) 40 GURL(chrome_prefix + chrome::kChromeUIVersionHost)
41 }, 41 },
42 { 42 {
(...skipping 24 matching lines...) Expand all
67 base::MessageLoopForUI message_loop; 67 base::MessageLoopForUI message_loop;
68 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop); 68 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop);
69 TestingProfile profile; 69 TestingProfile profile;
70 70
71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data); ++i) { 71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data); ++i) {
72 GURL url(test_data[i].test_url); 72 GURL url(test_data[i].test_url);
73 WillHandleBrowserAboutURL(&url, &profile); 73 WillHandleBrowserAboutURL(&url, &profile);
74 EXPECT_EQ(test_data[i].result_url, url); 74 EXPECT_EQ(test_data[i].result_url, url);
75 } 75 }
76 } 76 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/browser_commands_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698