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

Unified Diff: chrome/browser/sync/sessions/sync_session_unittest.cc

Issue 2075012: Replace changes_channel with an observer list. (Closed)
Patch Set: Ready for checkin Created 10 years, 6 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/browser/sync/engine/syncer_unittest.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sessions/sync_session_unittest.cc
diff --git a/chrome/browser/sync/sessions/sync_session_unittest.cc b/chrome/browser/sync/sessions/sync_session_unittest.cc
index 4251f0dafaf0ba28f075027fbbd3d4c322291f37..ae85137816dac45c28ed13a2aa769c57991112d2 100644
--- a/chrome/browser/sync/sessions/sync_session_unittest.cc
+++ b/chrome/browser/sync/sessions/sync_session_unittest.cc
@@ -88,8 +88,7 @@ class SyncSessionTest : public testing::Test,
TEST_F(SyncSessionTest, ScopedContextHelpers) {
ConflictResolver resolver;
- SyncerEventChannel* channel = new SyncerEventChannel(
- SyncerEvent(SyncerEvent::SHUTDOWN_USE_WITH_CARE));
+ SyncerEventChannel* channel = new SyncerEventChannel();
EXPECT_FALSE(context_->resolver());
EXPECT_FALSE(context_->syncer_event_channel());
{
@@ -100,6 +99,7 @@ TEST_F(SyncSessionTest, ScopedContextHelpers) {
}
EXPECT_FALSE(context_->resolver());
EXPECT_FALSE(context_->syncer_event_channel());
+ channel->Notify(SyncerEvent(SyncerEvent::SHUTDOWN_USE_WITH_CARE));
delete channel;
}
« no previous file with comments | « chrome/browser/sync/engine/syncer_unittest.cc ('k') | chrome/browser/sync/syncable/syncable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698