| 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/sync_sessions/sessions_sync_manager.h" | 5 #include "components/sync_sessions/sessions_sync_manager.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "chrome/browser/sessions/session_tab_helper.h" | 8 #include "chrome/browser/sessions/session_tab_helper.h" |
| 9 #include "chrome/browser/sync/chrome_sync_client.h" | 9 #include "chrome/browser/sync/chrome_sync_client.h" |
| 10 #include "chrome/browser/sync/glue/session_sync_test_helper.h" | 10 #include "chrome/browser/sync/glue/session_sync_test_helper.h" |
| 11 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" | 11 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" |
| 12 #include "chrome/browser/ui/sync/browser_synced_window_delegates_getter.h" | 12 #include "chrome/browser/ui/sync/browser_synced_window_delegates_getter.h" |
| 13 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 13 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 15 #include "chrome/test/base/browser_with_test_window_test.h" | 15 #include "chrome/test/base/browser_with_test_window_test.h" |
| 16 #include "components/sessions/content/content_serialized_navigation_builder.h" | 16 #include "components/sessions/content/content_serialized_navigation_builder.h" |
| 17 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" | 17 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
| 18 #include "components/sessions/core/session_id.h" | 18 #include "components/sessions/core/session_id.h" |
| 19 #include "components/sessions/core/session_types.h" | 19 #include "components/sessions/core/session_types.h" |
| 20 #include "components/sync_driver/device_info.h" | 20 #include "components/sync_driver/device_info.h" |
| 21 #include "components/sync_driver/glue/synced_window_delegate.h" | |
| 22 #include "components/sync_driver/local_device_info_provider_mock.h" | 21 #include "components/sync_driver/local_device_info_provider_mock.h" |
| 23 #include "components/sync_driver/sessions/synced_window_delegates_getter.h" | |
| 24 #include "components/sync_driver/sync_api_component_factory.h" | 22 #include "components/sync_driver/sync_api_component_factory.h" |
| 25 #include "components/sync_sessions/synced_tab_delegate.h" | 23 #include "components/sync_sessions/synced_tab_delegate.h" |
| 24 #include "components/sync_sessions/synced_window_delegate.h" |
| 25 #include "components/sync_sessions/synced_window_delegates_getter.h" |
| 26 #include "content/public/browser/navigation_entry.h" | 26 #include "content/public/browser/navigation_entry.h" |
| 27 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
| 28 #include "sync/api/attachments/attachment_id.h" | 28 #include "sync/api/attachments/attachment_id.h" |
| 29 #include "sync/api/sync_error_factory_mock.h" | 29 #include "sync/api/sync_error_factory_mock.h" |
| 30 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | 30 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
| 31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 | 33 |
| 34 using content::WebContents; | 34 using content::WebContents; |
| 35 using sessions::SerializedNavigationEntry; | 35 using sessions::SerializedNavigationEntry; |
| (...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2254 base::Time last_time; | 2254 base::Time last_time; |
| 2255 for (size_t i = 0; i < tabs.size(); ++i) { | 2255 for (size_t i = 0; i < tabs.size(); ++i) { |
| 2256 base::Time this_time = tabs[i]->timestamp; | 2256 base::Time this_time = tabs[i]->timestamp; |
| 2257 if (i > 0) | 2257 if (i > 0) |
| 2258 ASSERT_GE(last_time, this_time); | 2258 ASSERT_GE(last_time, this_time); |
| 2259 last_time = tabs[i]->timestamp; | 2259 last_time = tabs[i]->timestamp; |
| 2260 } | 2260 } |
| 2261 } | 2261 } |
| 2262 | 2262 |
| 2263 } // namespace browser_sync | 2263 } // namespace browser_sync |
| OLD | NEW |