OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/sync/glue/synced_session_util.h" | 5 #include "chrome/browser/sync/glue/synced_session_util.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 8 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
9 #include "components/sessions/session_types.h" | 9 #include "components/sessions/core/session_types.h" |
10 #include "content/public/browser/navigation_entry.h" | 10 #include "content/public/browser/navigation_entry.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 using sessions::SessionTab; | 14 using sessions::SessionTab; |
15 using sessions::SessionWindow; | 15 using sessions::SessionWindow; |
16 | 16 |
17 namespace browser_sync { | 17 namespace browser_sync { |
18 | 18 |
19 // TODO(skym): Test ShouldSyncSessionTab | 19 // TODO(skym): Test ShouldSyncSessionTab |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 SessionWindow window; | 106 SessionWindow window; |
107 window.tabs.push_back(tab1.release()); | 107 window.tabs.push_back(tab1.release()); |
108 window.tabs.push_back(tab2.release()); | 108 window.tabs.push_back(tab2.release()); |
109 window.tabs.push_back(tab3.release()); | 109 window.tabs.push_back(tab3.release()); |
110 | 110 |
111 EXPECT_TRUE(ShouldSyncSessionWindow(window)); | 111 EXPECT_TRUE(ShouldSyncSessionWindow(window)); |
112 } | 112 } |
113 | 113 |
114 } // namespace browser_sync | 114 } // namespace browser_sync |
OLD | NEW |