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.
5 #include "chrome/browser/chrome_content_browser_client.h"
7 #include "testing/gtest/include/gtest/gtest.h"
12 typedef testing::Test ChromeContentBrowserClientTest;
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")));