| 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.h" | 5 #include "components/sessions/serialized_navigation_entry.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "content/public/browser/favicon_status.h" | 17 #include "content/public/browser/favicon_status.h" |
| 18 #include "content/public/browser/navigation_entry.h" | 18 #include "content/public/browser/navigation_entry.h" |
| 19 #include "content/public/common/page_transition_types.h" | 19 #include "content/public/common/page_transition_types.h" |
| 20 #include "content/public/common/referrer.h" | 20 #include "content/public/common/referrer.h" |
| 21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
| 22 #include "sync/protocol/session_specifics.pb.h" | 22 #include "sync/protocol/session_specifics.pb.h" |
| 23 #include "sync/util/time.h" | 23 #include "sync/util/time.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" | 25 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 26 | 26 |
| 27 namespace sessions { | 27 namespace sessions { |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 const int kIndex = 3; | 30 const int kIndex = 3; |
| 31 const int kUniqueID = 50; | 31 const int kUniqueID = 50; |
| 32 const content::Referrer kReferrer = | 32 const content::Referrer kReferrer = |
| 33 content::Referrer(GURL("http://www.referrer.com"), | 33 content::Referrer(GURL("http://www.referrer.com"), |
| 34 WebKit::WebReferrerPolicyAlways); | 34 WebKit::WebReferrerPolicyAlways); |
| 35 const GURL kVirtualURL("http://www.virtual-url.com"); | 35 const GURL kVirtualURL("http://www.virtual-url.com"); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 const content::PageTransition constructed_transition = | 280 const content::PageTransition constructed_transition = |
| 281 constructed_nav.transition_type(); | 281 constructed_nav.transition_type(); |
| 282 | 282 |
| 283 EXPECT_EQ(transition, constructed_transition); | 283 EXPECT_EQ(transition, constructed_transition); |
| 284 } | 284 } |
| 285 } | 285 } |
| 286 } | 286 } |
| 287 | 287 |
| 288 } // namespace | 288 } // namespace |
| 289 } // namespace sessions | 289 } // namespace sessions |
| OLD | NEW |