- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / chrome_content_browser_client_unittest.cc
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
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "url/gurl.h"
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