OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/sessions/session_service.h" | 5 #include "chrome/browser/sessions/session_service.h" |
6 #include "chrome/browser/sync/profile_sync_service.h" | |
7 #include "chrome/browser/sync/test/integration/sessions_helper.h" | 6 #include "chrome/browser/sync/test/integration/sessions_helper.h" |
8 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
9 #include "chrome/browser/sync/test/integration/sync_test.h" | 8 #include "chrome/browser/sync/test/integration/sync_test.h" |
10 #include "chrome/browser/sync/test/integration/typed_urls_helper.h" | 9 #include "chrome/browser/sync/test/integration/typed_urls_helper.h" |
11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| 11 #include "components/browser_sync/browser/profile_sync_service.h" |
12 #include "components/history/core/browser/history_types.h" | 12 #include "components/history/core/browser/history_types.h" |
13 #include "components/sessions/core/session_types.h" | 13 #include "components/sessions/core/session_types.h" |
14 #include "sync/test/fake_server/fake_server_verifier.h" | 14 #include "sync/test/fake_server/fake_server_verifier.h" |
15 #include "sync/test/fake_server/sessions_hierarchy.h" | 15 #include "sync/test/fake_server/sessions_hierarchy.h" |
16 #include "sync/util/time.h" | 16 #include "sync/util/time.h" |
17 | 17 |
18 using fake_server::SessionsHierarchy; | 18 using fake_server::SessionsHierarchy; |
19 using sessions_helper::CheckInitialState; | 19 using sessions_helper::CheckInitialState; |
20 using sessions_helper::GetLocalWindows; | 20 using sessions_helper::GetLocalWindows; |
21 using sessions_helper::GetSessionData; | 21 using sessions_helper::GetSessionData; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 for (std::vector<sessions::SerializedNavigationEntry>::const_iterator | 144 for (std::vector<sessions::SerializedNavigationEntry>::const_iterator |
145 it3 = (*it2)->navigations.begin(); | 145 it3 = (*it2)->navigations.begin(); |
146 it3 != (*it2)->navigations.end(); ++it3) { | 146 it3 != (*it2)->navigations.end(); ++it3) { |
147 EXPECT_EQ(200, it3->http_status_code()); | 147 EXPECT_EQ(200, it3->http_status_code()); |
148 ++found_navigations; | 148 ++found_navigations; |
149 } | 149 } |
150 } | 150 } |
151 } | 151 } |
152 ASSERT_EQ(1, found_navigations); | 152 ASSERT_EQ(1, found_navigations); |
153 } | 153 } |
OLD | NEW |