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

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

Issue 13513004: content: Move more constants into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
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.h" 7 #include "base/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 27 matching lines...) Expand all
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 {
43 GURL(chrome_prefix + chrome::kChromeUIAboutHost), 43 GURL(chrome_prefix + chrome::kChromeUIAboutHost),
44 GURL(chrome_prefix + chrome::kChromeUIChromeURLsHost) 44 GURL(chrome_prefix + chrome::kChromeUIChromeURLsHost)
45 }, 45 },
46 { 46 {
47 GURL(chrome_prefix + chrome::kChromeUICacheHost), 47 GURL(chrome_prefix + chrome::kChromeUICacheHost),
48 GURL(chrome_prefix + chrome::kChromeUINetworkViewCacheHost) 48 GURL(chrome_prefix + content::kChromeUINetworkViewCacheHost)
49 }, 49 },
50 { 50 {
51 GURL(chrome_prefix + chrome::kChromeUISignInInternalsHost), 51 GURL(chrome_prefix + chrome::kChromeUISignInInternalsHost),
52 GURL(chrome_prefix + chrome::kChromeUISignInInternalsHost) 52 GURL(chrome_prefix + chrome::kChromeUISignInInternalsHost)
53 }, 53 },
54 { 54 {
55 GURL(chrome_prefix + chrome::kChromeUISyncHost), 55 GURL(chrome_prefix + chrome::kChromeUISyncHost),
56 GURL(chrome_prefix + chrome::kChromeUISyncInternalsHost) 56 GURL(chrome_prefix + chrome::kChromeUISyncInternalsHost)
57 }, 57 },
58 { 58 {
59 GURL(chrome_prefix + "host/path?query#ref"), 59 GURL(chrome_prefix + "host/path?query#ref"),
60 GURL(chrome_prefix + "host/path?query#ref"), 60 GURL(chrome_prefix + "host/path?query#ref"),
61 } 61 }
62 }; 62 };
63 MessageLoopForUI message_loop; 63 MessageLoopForUI message_loop;
64 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop); 64 content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop);
65 TestingProfile profile; 65 TestingProfile profile;
66 66
67 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data); ++i) { 67 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_data); ++i) {
68 GURL url(test_data[i].test_url); 68 GURL url(test_data[i].test_url);
69 WillHandleBrowserAboutURL(&url, &profile); 69 WillHandleBrowserAboutURL(&url, &profile);
70 EXPECT_EQ(test_data[i].result_url, url); 70 EXPECT_EQ(test_data[i].result_url, url);
71 } 71 }
72 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/extensions/extension_tab_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698