OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h" | |
6 | |
7 #include "content/public/common/referrer.h" | |
8 | |
9 namespace { | |
10 | |
11 const char* kTestURL = "http://google.com/"; | |
12 | |
13 // Check that copying Referrer objects works. | |
14 TEST(ReferrerTest, Copy) { | |
15 content::Referrer r1(GURL(kTestURL), WebKit::WebReferrerPolicyAlways); | |
16 content::Referrer r2; | |
17 | |
18 r2 = r1; | |
19 EXPECT_EQ(GURL(kTestURL), r2.url); | |
20 EXPECT_EQ(WebKit::WebReferrerPolicyAlways, r2.policy); | |
21 } | |
22 | |
23 } // namespace | |
OLD | NEW |