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

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

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/test/sync/null_directory_change_delegate.cc ('k') | chrome/test/sync/test_http_bridge_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/sync/sessions/test_scoped_session_event_listener.h
===================================================================
--- chrome/test/sync/sessions/test_scoped_session_event_listener.h (revision 99413)
+++ chrome/test/sync/sessions/test_scoped_session_event_listener.h (working copy)
@@ -1,36 +0,0 @@
-// Copyright (c) 2010 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 CHROME_TEST_SYNC_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
-#define CHROME_TEST_SYNC_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
-#pragma once
-
-#include "chrome/browser/sync/sessions/sync_session_context.h"
-
-namespace browser_sync {
-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 browser_sync
-
-#endif // CHROME_TEST_SYNC_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_
« no previous file with comments | « chrome/test/sync/null_directory_change_delegate.cc ('k') | chrome/test/sync/test_http_bridge_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698