Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: chrome/browser/sync/test/integration/sessions_helper.cc

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix Android. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/sessions_helper.cc
diff --git a/chrome/browser/sync/test/integration/sessions_helper.cc b/chrome/browser/sync/test/integration/sessions_helper.cc
index 880177346826fca95a06493163c1bc40f6e0ad07..82b175a97d09d9777a95a3dea2e4f76fe05f8308 100644
--- a/chrome/browser/sync/test/integration/sessions_helper.cc
+++ b/chrome/browser/sync/test/integration/sessions_helper.cc
@@ -7,6 +7,8 @@
#include <stddef.h>
#include <algorithm>
+#include <set>
+#include <utility>
#include "base/bind.h"
#include "base/command_line.h"
@@ -61,7 +63,7 @@ void ScopedWindowMap::Reset(SessionWindowMap* windows) {
std::swap(*windows, windows_);
}
-bool GetLocalSession(int index, const sync_driver::SyncedSession** session) {
+bool GetLocalSession(int index, const sync_sessions::SyncedSession** session) {
return ProfileSyncServiceFactory::GetInstance()->GetForProfile(
test()->GetProfile(index))->GetOpenTabsUIDelegate()->
GetLocalSession(session);
@@ -69,7 +71,7 @@ bool GetLocalSession(int index, const sync_driver::SyncedSession** session) {
bool ModelAssociatorHasTabWithUrl(int index, const GURL& url) {
content::RunAllPendingInMessageLoop();
- const sync_driver::SyncedSession* local_session;
+ const sync_sessions::SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return false;
}
@@ -132,7 +134,7 @@ bool OpenMultipleTabs(int index, const std::vector<GURL>& urls) {
namespace {
-class TabEventHandler : public browser_sync::LocalSessionEventHandler {
+class TabEventHandler : public sync_sessions::LocalSessionEventHandler {
public:
TabEventHandler() : weak_factory_(this) {
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
@@ -142,7 +144,7 @@ class TabEventHandler : public browser_sync::LocalSessionEventHandler {
}
void OnLocalTabModified(
- browser_sync::SyncedTabDelegate* modified_tab) override {
+ sync_sessions::SyncedTabDelegate* modified_tab) override {
// Unwind to ensure SessionsSyncManager has processed the event.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
@@ -201,7 +203,7 @@ bool WaitForTabsToLoad(int index, const std::vector<GURL>& urls) {
bool GetLocalWindows(int index, SessionWindowMap* local_windows) {
// The local session provided by GetLocalSession is owned, and has lifetime
// controlled, by the model associator, so we must make our own copy.
- const sync_driver::SyncedSession* local_session;
+ const sync_sessions::SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return false;
}
@@ -242,7 +244,7 @@ bool CheckInitialState(int index) {
}
int GetNumWindows(int index) {
- const sync_driver::SyncedSession* local_session;
+ const sync_sessions::SyncedSession* local_session;
if (!GetLocalSession(index, &local_session)) {
return 0;
}
@@ -271,8 +273,8 @@ bool GetSessionData(int index, SyncedSessionVector* sessions) {
return true;
}
-bool CompareSyncedSessions(const sync_driver::SyncedSession* lhs,
- const sync_driver::SyncedSession* rhs) {
+bool CompareSyncedSessions(const sync_sessions::SyncedSession* lhs,
+ const sync_sessions::SyncedSession* rhs) {
if (!lhs ||
!rhs ||
lhs->windows.size() < 1 ||

Powered by Google App Engine
This is Rietveld 408576698