[email protected] | 3d83199 | 2013-07-04 01:13:29 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | |
[email protected] | 3d83199 | 2013-07-04 01:13:29 | [diff] [blame] | 7 | #include "testing/gtest/include/gtest/gtest.h" |
[email protected] | 5f5ef80 | 2013-07-04 16:11:13 | [diff] [blame^] | 8 | #include "url/gurl.h" |
[email protected] | 3d83199 | 2013-07-04 01:13:29 | [diff] [blame] | 9 | |
| 10 | namespace chrome { |
| 11 | |
| 12 | typedef testing::Test ChromeContentBrowserClientTest; |
| 13 | |
| 14 | |
| 15 | TEST_F(ChromeContentBrowserClientTest, ShouldAssignSiteForURL) { |
| 16 | ChromeContentBrowserClient client; |
| 17 | EXPECT_FALSE(client.ShouldAssignSiteForURL(GURL("chrome-native://test"))); |
| 18 | EXPECT_TRUE(client.ShouldAssignSiteForURL(GURL("http://www.google.com"))); |
| 19 | EXPECT_TRUE(client.ShouldAssignSiteForURL(GURL("https://www.google.com"))); |
| 20 | } |
| 21 | |
| 22 | } // namespace chrome |