blob: 66808fa5ff644d86a94634f02bb0c15895ab51bf [file] [log] [blame]
[email protected]3d831992013-07-04 01:13:291// 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]3d831992013-07-04 01:13:297#include "testing/gtest/include/gtest/gtest.h"
[email protected]5f5ef802013-07-04 16:11:138#include "url/gurl.h"
[email protected]3d831992013-07-04 01:13:299
10namespace chrome {
11
12typedef testing::Test ChromeContentBrowserClientTest;
13
14
15TEST_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