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/core/serialized_navigation_entry.h" | 5 #include "components/sessions/core/serialized_navigation_entry.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "components/sessions/core/serialized_navigation_driver.h" | 18 #include "components/sessions/core/serialized_navigation_driver.h" |
19 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" | 19 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
20 #include "sync/protocol/session_specifics.pb.h" | 20 #include "components/sync/base/time.h" |
21 #include "sync/util/time.h" | 21 #include "components/sync/protocol/session_specifics.pb.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "ui/base/page_transition_types.h" | 23 #include "ui/base/page_transition_types.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 namespace sessions { | 26 namespace sessions { |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Create a sync_pb::TabNavigation from the constants above. | 29 // Create a sync_pb::TabNavigation from the constants above. |
30 sync_pb::TabNavigation MakeSyncDataForTest() { | 30 sync_pb::TabNavigation MakeSyncDataForTest() { |
31 sync_pb::TabNavigation sync_data; | 31 sync_pb::TabNavigation sync_data; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 constructed_nav.transition_type(); | 220 constructed_nav.transition_type(); |
221 | 221 |
222 EXPECT_TRUE(ui::PageTransitionTypeIncludingQualifiersIs( | 222 EXPECT_TRUE(ui::PageTransitionTypeIncludingQualifiersIs( |
223 constructed_transition, transition)); | 223 constructed_transition, transition)); |
224 } | 224 } |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 } // namespace | 228 } // namespace |
229 } // namespace sessions | 229 } // namespace sessions |
OLD | NEW |