| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/sync/test/integration/sessions_helper.h" | 5 #include "chrome/browser/sync/test/integration/sessions_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/test/base/ui_test_utils.h" | 30 #include "chrome/test/base/ui_test_utils.h" |
| 31 #include "components/browser_sync/profile_sync_service.h" | 31 #include "components/browser_sync/profile_sync_service.h" |
| 32 #include "components/sync/driver/sync_client.h" | 32 #include "components/sync/driver/sync_client.h" |
| 33 #include "components/sync/test/fake_server/fake_server.h" | 33 #include "components/sync/test/fake_server/fake_server.h" |
| 34 #include "components/sync/test/fake_server/sessions_hierarchy.h" | 34 #include "components/sync/test/fake_server/sessions_hierarchy.h" |
| 35 #include "components/sync_sessions/open_tabs_ui_delegate.h" | 35 #include "components/sync_sessions/open_tabs_ui_delegate.h" |
| 36 #include "content/public/browser/navigation_entry.h" | 36 #include "content/public/browser/navigation_entry.h" |
| 37 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
| 38 #include "content/public/browser/render_process_host.h" | 38 #include "content/public/browser/render_process_host.h" |
| 39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 40 #include "content/public/test/browser_test_utils.cc" | 40 #include "content/public/test/browser_test_utils.h" |
| 41 #include "content/public/test/test_utils.h" | 41 #include "content/public/test/test_utils.h" |
| 42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
| 43 | 43 |
| 44 using sync_datatype_helper::test; | 44 using sync_datatype_helper::test; |
| 45 | 45 |
| 46 namespace sessions_helper { | 46 namespace sessions_helper { |
| 47 | 47 |
| 48 bool GetLocalSession(int index, const sync_sessions::SyncedSession** session) { | 48 bool GetLocalSession(int index, const sync_sessions::SyncedSession** session) { |
| 49 return ProfileSyncServiceFactory::GetInstance() | 49 return ProfileSyncServiceFactory::GetInstance() |
| 50 ->GetForProfile(test()->GetProfile(index)) | 50 ->GetForProfile(test()->GetProfile(index)) |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 index_(index), | 435 index_(index), |
| 436 windows_(windows) {} | 436 windows_(windows) {} |
| 437 | 437 |
| 438 bool ForeignSessionsMatchChecker::IsExitConditionSatisfied() { | 438 bool ForeignSessionsMatchChecker::IsExitConditionSatisfied() { |
| 439 return sessions_helper::CheckForeignSessionsAgainst(index_, windows_); | 439 return sessions_helper::CheckForeignSessionsAgainst(index_, windows_); |
| 440 } | 440 } |
| 441 | 441 |
| 442 std::string ForeignSessionsMatchChecker::GetDebugMessage() const { | 442 std::string ForeignSessionsMatchChecker::GetDebugMessage() const { |
| 443 return "Waiting for matching foreign sessions"; | 443 return "Waiting for matching foreign sessions"; |
| 444 } | 444 } |
| OLD | NEW |