diff options
author | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-04 01:13:29 +0000 |
---|---|---|
committer | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-04 01:13:29 +0000 |
commit | 3d831992ca2c2f394eea257e93ba177333398094 (patch) | |
tree | dfce9a899c9b38fb702f6badf42a075dc4e9f1ab /chrome/browser/chrome_content_browser_client_unittest.cc | |
parent | 00a392b57c9a07c331cab0f67e863cf97efb0924 (diff) | |
download | chromium_src-3d831992ca2c2f394eea257e93ba177333398094.zip chromium_src-3d831992ca2c2f394eea257e93ba177333398094.tar.gz chromium_src-3d831992ca2c2f394eea257e93ba177333398094.tar.bz2 |
Move chrome-native support to chrome/
Based on request in:
https://chromiumcodereview.appspot.com/15675024
BUG=178915
Review URL: https://chromiumcodereview.appspot.com/17648003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_content_browser_client_unittest.cc')
-rw-r--r-- | chrome/browser/chrome_content_browser_client_unittest.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/chrome_content_browser_client_unittest.cc b/chrome/browser/chrome_content_browser_client_unittest.cc new file mode 100644 index 0000000..d393105 --- /dev/null +++ b/chrome/browser/chrome_content_browser_client_unittest.cc @@ -0,0 +1,22 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/chrome_content_browser_client.h" + +#include "googleurl/src/gurl.h" +#include "testing/gtest/include/gtest/gtest.h" + +namespace chrome { + +typedef testing::Test ChromeContentBrowserClientTest; + + +TEST_F(ChromeContentBrowserClientTest, ShouldAssignSiteForURL) { + ChromeContentBrowserClient client; + EXPECT_FALSE(client.ShouldAssignSiteForURL(GURL("chrome-native://test"))); + EXPECT_TRUE(client.ShouldAssignSiteForURL(GURL("http://www.google.com"))); + EXPECT_TRUE(client.ShouldAssignSiteForURL(GURL("https://www.google.com"))); +} + +} // namespace chrome |