| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ios/ios_serialized_navigation_builder.h" | 5 #include "components/sessions/ios/ios_serialized_navigation_builder.h" |
| 6 | 6 |
| 7 #include "components/sessions/serialized_navigation_entry.h" | 7 #include "components/sessions/core/serialized_navigation_entry.h" |
| 8 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 8 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
| 9 #include "ios/web/public/favicon_status.h" | 9 #include "ios/web/public/favicon_status.h" |
| 10 #include "ios/web/public/navigation_item.h" | 10 #include "ios/web/public/navigation_item.h" |
| 11 #include "ios/web/public/referrer.h" | 11 #include "ios/web/public/referrer.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace sessions { | 14 namespace sessions { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 // Creates a NavigationItem from the test_data constants in | 17 // Creates a NavigationItem from the test_data constants in |
| 18 // serialized_navigation_entry_test_helper.h. | 18 // serialized_navigation_entry_test_helper.h. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 new_navigation_item->GetVirtualURL()); | 95 new_navigation_item->GetVirtualURL()); |
| 96 EXPECT_EQ(old_navigation_item->GetTitle(), | 96 EXPECT_EQ(old_navigation_item->GetTitle(), |
| 97 new_navigation_item->GetTitle()); | 97 new_navigation_item->GetTitle()); |
| 98 EXPECT_EQ(ui::PAGE_TRANSITION_RELOAD, | 98 EXPECT_EQ(ui::PAGE_TRANSITION_RELOAD, |
| 99 new_navigation_item->GetTransitionType()); | 99 new_navigation_item->GetTransitionType()); |
| 100 EXPECT_EQ(old_navigation_item->GetTimestamp(), | 100 EXPECT_EQ(old_navigation_item->GetTimestamp(), |
| 101 new_navigation_item->GetTimestamp()); | 101 new_navigation_item->GetTimestamp()); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace sessions | 104 } // namespace sessions |
| OLD | NEW |