| Index: content/browser/tab_contents/referrer_unittest.cc
|
| diff --git a/content/browser/tab_contents/referrer_unittest.cc b/content/browser/tab_contents/referrer_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..42203ba172688c556b7c4b4492f1c388963571b7
|
| --- /dev/null
|
| +++ b/content/browser/tab_contents/referrer_unittest.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +#include "content/browser/tab_contents/referrer.h"
|
| +
|
| +namespace {
|
| +
|
| +const char* kTestURL = "http://google.com/";
|
| +
|
| +// Check that copying Referrer objects works.
|
| +TEST(ReferrerTest, Copy) {
|
| + content::Referrer r1(GURL(kTestURL), WebKit::WebReferrerPolicyAlways);
|
| + content::Referrer r2;
|
| +
|
| + r2 = r1;
|
| + EXPECT_EQ(GURL(kTestURL), r2.url());
|
| + EXPECT_EQ(WebKit::WebReferrerPolicyAlways, r2.policy());
|
| +}
|
| +
|
| +} // namespace
|
|
|