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

Unified Diff: components/sync_sessions/session_sync_test_helper.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. 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: components/sync_sessions/session_sync_test_helper.h
diff --git a/chrome/browser/sync/glue/session_sync_test_helper.h b/components/sync_sessions/session_sync_test_helper.h
similarity index 85%
rename from chrome/browser/sync/glue/session_sync_test_helper.h
rename to components/sync_sessions/session_sync_test_helper.h
index f4055c050c1f2bf96bd02fe02b664b8bad31ad6c..ce6dd7906dee1adec7d8a40d9b35b2754e72fd21 100644
--- a/chrome/browser/sync/glue/session_sync_test_helper.h
+++ b/components/sync_sessions/session_sync_test_helper.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
-#define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
+#ifndef COMPONENTS_SYNC_SESSIONS_SESSION_SYNC_TEST_HELPER_H_
+#define COMPONENTS_SYNC_SESSIONS_SESSION_SYNC_TEST_HELPER_H_
#include <string>
#include <vector>
@@ -11,15 +11,13 @@
#include "base/macros.h"
#include "components/sessions/core/session_id.h"
-namespace sync_driver {
-struct SyncedSession;
-}
-
namespace sync_pb {
class SessionSpecifics;
}
-namespace browser_sync {
+namespace sync_sessions {
+
+struct SyncedSession;
class SessionSyncTestHelper {
public:
@@ -35,7 +33,7 @@ class SessionSyncTestHelper {
static void VerifySyncedSession(
const std::string& tag,
const std::vector<std::vector<SessionID::id_type>>& windows,
- const sync_driver::SyncedSession& session);
+ const SyncedSession& session);
// Build a SessionSpecifics object with a tab and sample data. Uses a
// monotonically increasing variable to generate tab_node_ids and avoid
@@ -66,6 +64,6 @@ class SessionSyncTestHelper {
DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper);
};
-} // namespace browser_sync
+} // namespace sync_sessions
-#endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_
+#endif // COMPONENTS_SYNC_SESSIONS_SESSION_SYNC_TEST_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698