Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: content/common/referrer_unittest.cc

Issue 8635017: Add a referrer class to be used in the browser process whenever passing around referrsr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698