OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 5 #include "components/sessions/serialized_navigation_entry_test_helper.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "components/sessions/serialized_navigation_entry.h" | 9 #include "components/sessions/serialized_navigation_entry.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" | 12 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
13 | 13 |
14 namespace sessions { | 14 namespace sessions { |
15 | 15 |
16 // static | 16 // static |
17 void SerializedNavigationEntryTestHelper::ExpectNavigationEquals( | 17 void SerializedNavigationEntryTestHelper::ExpectNavigationEquals( |
18 const SerializedNavigationEntry& expected, | 18 const SerializedNavigationEntry& expected, |
19 const SerializedNavigationEntry& actual) { | 19 const SerializedNavigationEntry& actual) { |
20 EXPECT_EQ(expected.referrer_.url, actual.referrer_.url); | 20 EXPECT_EQ(expected.referrer_.url, actual.referrer_.url); |
21 EXPECT_EQ(expected.referrer_.policy, actual.referrer_.policy); | 21 EXPECT_EQ(expected.referrer_.policy, actual.referrer_.policy); |
22 EXPECT_EQ(expected.virtual_url_, actual.virtual_url_); | 22 EXPECT_EQ(expected.virtual_url_, actual.virtual_url_); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 // static | 76 // static |
77 void SerializedNavigationEntryTestHelper::SetTimestamp( | 77 void SerializedNavigationEntryTestHelper::SetTimestamp( |
78 base::Time timestamp, | 78 base::Time timestamp, |
79 SerializedNavigationEntry* navigation) { | 79 SerializedNavigationEntry* navigation) { |
80 navigation->timestamp_ = timestamp; | 80 navigation->timestamp_ = timestamp; |
81 } | 81 } |
82 | 82 |
83 } // namespace sessions | 83 } // namespace sessions |
OLD | NEW |