OLD | NEW |
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 }, | 61 }, |
62 { | 62 { |
63 GURL(chrome_prefix + "host/path?query#ref"), | 63 GURL(chrome_prefix + "host/path?query#ref"), |
64 GURL(chrome_prefix + "host/path?query#ref"), | 64 GURL(chrome_prefix + "host/path?query#ref"), |
65 } | 65 } |
66 }; | 66 }; |
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(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 } |
OLD | NEW |