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

Side by Side Diff: sync/sessions/sync_session_unittest.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sessions/test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/sessions/sync_session.h" 5 #include "sync/sessions/sync_session.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 14 matching lines...) Expand all
25 25
26 namespace sessions { 26 namespace sessions {
27 namespace { 27 namespace {
28 28
29 class SyncSessionTest : public testing::Test, 29 class SyncSessionTest : public testing::Test,
30 public SyncSession::Delegate { 30 public SyncSession::Delegate {
31 public: 31 public:
32 SyncSessionTest() : controller_invocations_allowed_(false) {} 32 SyncSessionTest() : controller_invocations_allowed_(false) {}
33 33
34 SyncSession* MakeSession() { 34 SyncSession* MakeSession() {
35 return SyncSession::Build(context_.get(), 35 return SyncSession::Build(context_.get(), this);
36 this,
37 SyncSourceInfo());
38 } 36 }
39 37
40 virtual void SetUp() { 38 virtual void SetUp() {
41 routes_.clear(); 39 routes_.clear();
42 routes_[BOOKMARKS] = GROUP_UI; 40 routes_[BOOKMARKS] = GROUP_UI;
43 routes_[AUTOFILL] = GROUP_DB; 41 routes_[AUTOFILL] = GROUP_DB;
44 scoped_refptr<ModelSafeWorker> passive_worker( 42 scoped_refptr<ModelSafeWorker> passive_worker(
45 new FakeModelWorker(GROUP_PASSIVE)); 43 new FakeModelWorker(GROUP_PASSIVE));
46 scoped_refptr<ModelSafeWorker> ui_worker( 44 scoped_refptr<ModelSafeWorker> ui_worker(
47 new FakeModelWorker(GROUP_UI)); 45 new FakeModelWorker(GROUP_UI));
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 194
197 ASSERT_EQ(3U, invalidation_map.size()); 195 ASSERT_EQ(3U, invalidation_map.size());
198 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload); 196 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload);
199 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload); 197 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload);
200 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload); 198 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload);
201 } 199 }
202 200
203 } // namespace 201 } // namespace
204 } // namespace sessions 202 } // namespace sessions
205 } // namespace syncer 203 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sessions/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698