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

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

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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/components/sync/test/sessions/test_scoped_session_event_listener.h b/components/sync/test/sessions/test_scoped_session_event_listener.h
deleted file mode 100644
index 6691473cbc6a6cbbe5c9f1565c034f7c41adc1c2..0000000000000000000000000000000000000000
--- a/components/sync/test/sessions/test_scoped_session_event_listener.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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 "components/sync/sessions_impl/sync_session_context.h"
-
-namespace syncer {
-namespace sessions {
-
-// Installs a SyncEventListener to a given session context for the lifetime of
-// the TestScopedSessionEventListener.
-class TestScopedSessionEventListener {
- public:
- TestScopedSessionEventListener(SyncSessionContext* context,
- SyncEngineEventListener* listener)
- : context_(context), listener_(listener) {
- context->listeners_.AddObserver(listener);
- }
- ~TestScopedSessionEventListener() {
- context_->listeners_.RemoveObserver(listener_);
- }
-
- private:
- SyncSessionContext* context_;
- SyncEngineEventListener* listener_;
- DISALLOW_COPY_AND_ASSIGN(TestScopedSessionEventListener);
-};
-
-} // namespace sessions
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_

Powered by Google App Engine
This is Rietveld 408576698