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

Unified Diff: components/sync/test/sessions/test_scoped_session_event_listener.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/test/sessions/test_scoped_session_event_listener.h
diff --git a/sync/test/sessions/test_scoped_session_event_listener.h b/components/sync/test/sessions/test_scoped_session_event_listener.h
similarity index 57%
rename from sync/test/sessions/test_scoped_session_event_listener.h
rename to components/sync/test/sessions/test_scoped_session_event_listener.h
index 3599e7461e51ea69d189181c8699324bd7919726..6691473cbc6a6cbbe5c9f1565c034f7c41adc1c2 100644
--- a/sync/test/sessions/test_scoped_session_event_listener.h
+++ b/components/sync/test/sessions/test_scoped_session_event_listener.h
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
-#define SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
+#ifndef COMPONENTS_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
+#define COMPONENTS_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
#include "base/macros.h"
-#include "sync/sessions/sync_session_context.h"
+#include "components/sync/sessions_impl/sync_session_context.h"
namespace syncer {
namespace sessions {
@@ -15,15 +15,15 @@ namespace sessions {
// the TestScopedSessionEventListener.
class TestScopedSessionEventListener {
public:
- TestScopedSessionEventListener(
- SyncSessionContext* context,
- SyncEngineEventListener* listener)
- : context_(context), listener_(listener) {
- context->listeners_.AddObserver(listener);
+ TestScopedSessionEventListener(SyncSessionContext* context,
+ SyncEngineEventListener* listener)
+ : context_(context), listener_(listener) {
+ context->listeners_.AddObserver(listener);
}
~TestScopedSessionEventListener() {
context_->listeners_.RemoveObserver(listener_);
}
+
private:
SyncSessionContext* context_;
SyncEngineEventListener* listener_;
@@ -33,4 +33,4 @@ class TestScopedSessionEventListener {
} // namespace sessions
} // namespace syncer
-#endif // SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
+#endif // COMPONENTS_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
« no previous file with comments | « components/sync/test/sessions/mock_debug_info_getter.cc ('k') | components/sync/test/test_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698