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

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

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 8 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_context.cc ('k') | sync/test/engine/syncer_command_test.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.h" 10 #include "base/message_loop.h"
(...skipping 25 matching lines...) Expand all
36 std::vector<ModelSafeWorker*> workers; 36 std::vector<ModelSafeWorker*> workers;
37 GetWorkers(&workers); 37 GetWorkers(&workers);
38 return new SyncSession(context_.get(), this, SyncSourceInfo(), 38 return new SyncSession(context_.get(), this, SyncSourceInfo(),
39 routes_, workers); 39 routes_, workers);
40 } 40 }
41 41
42 virtual void SetUp() { 42 virtual void SetUp() {
43 context_.reset( 43 context_.reset(
44 new SyncSessionContext( 44 new SyncSessionContext(
45 NULL, NULL, this, &extensions_activity_monitor_, 45 NULL, NULL, this, &extensions_activity_monitor_,
46 std::vector<SyncEngineEventListener*>(), NULL)); 46 std::vector<SyncEngineEventListener*>(), NULL, NULL));
47 routes_.clear(); 47 routes_.clear();
48 routes_[syncable::BOOKMARKS] = GROUP_UI; 48 routes_[syncable::BOOKMARKS] = GROUP_UI;
49 routes_[syncable::AUTOFILL] = GROUP_DB; 49 routes_[syncable::AUTOFILL] = GROUP_DB;
50 scoped_refptr<ModelSafeWorker> passive_worker( 50 scoped_refptr<ModelSafeWorker> passive_worker(
51 new FakeModelWorker(GROUP_PASSIVE)); 51 new FakeModelWorker(GROUP_PASSIVE));
52 scoped_refptr<ModelSafeWorker> ui_worker( 52 scoped_refptr<ModelSafeWorker> ui_worker(
53 new FakeModelWorker(GROUP_UI)); 53 new FakeModelWorker(GROUP_UI));
54 scoped_refptr<ModelSafeWorker> db_worker( 54 scoped_refptr<ModelSafeWorker> db_worker(
55 new FakeModelWorker(GROUP_DB)); 55 new FakeModelWorker(GROUP_DB));
56 workers_.clear(); 56 workers_.clear();
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 EXPECT_EQ(empty_payload, original[syncable::BOOKMARKS]); 587 EXPECT_EQ(empty_payload, original[syncable::BOOKMARKS]);
588 EXPECT_EQ(payload1, original[syncable::PASSWORDS]); 588 EXPECT_EQ(payload1, original[syncable::PASSWORDS]);
589 EXPECT_EQ(payload1, original[syncable::AUTOFILL]); 589 EXPECT_EQ(payload1, original[syncable::AUTOFILL]);
590 EXPECT_EQ(payload2, original[syncable::SESSIONS]); 590 EXPECT_EQ(payload2, original[syncable::SESSIONS]);
591 EXPECT_EQ(payload3, original[syncable::THEMES]); 591 EXPECT_EQ(payload3, original[syncable::THEMES]);
592 } 592 }
593 593
594 } // namespace 594 } // namespace
595 } // namespace sessions 595 } // namespace sessions
596 } // namespace browser_sync 596 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/sessions/sync_session_context.cc ('k') | sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698