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

Side by Side Diff: chrome/browser/sync/engine/verify_updates_command_unittest.cc

Issue 4291001: Convert implicit scoped_refptr constructor calls to explicit ones, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build
Patch Set: comments Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/sync/engine/verify_updates_command.h" 5 #include "chrome/browser/sync/engine/verify_updates_command.h"
6 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 6 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
7 #include "chrome/browser/sync/sessions/sync_session.h" 7 #include "chrome/browser/sync/sessions/sync_session.h"
8 #include "chrome/browser/sync/syncable/directory_manager.h" 8 #include "chrome/browser/sync/syncable/directory_manager.h"
9 #include "chrome/browser/sync/engine/mock_model_safe_workers.h" 9 #include "chrome/browser/sync/engine/mock_model_safe_workers.h"
10 #include "chrome/browser/sync/syncable/syncable.h" 10 #include "chrome/browser/sync/syncable/syncable.h"
(...skipping 12 matching lines...) Expand all
23 using syncable::ReadTransaction; 23 using syncable::ReadTransaction;
24 using syncable::ScopedDirLookup; 24 using syncable::ScopedDirLookup;
25 using syncable::UNITTEST; 25 using syncable::UNITTEST;
26 using syncable::WriteTransaction; 26 using syncable::WriteTransaction;
27 27
28 class VerifyUpdatesCommandTest : public SyncerCommandTest { 28 class VerifyUpdatesCommandTest : public SyncerCommandTest {
29 public: 29 public:
30 virtual void SetUp() { 30 virtual void SetUp() {
31 workers()->clear(); 31 workers()->clear();
32 mutable_routing_info()->clear(); 32 mutable_routing_info()->clear();
33 workers()->push_back(new MockDBModelWorker()); 33 workers()->push_back(make_scoped_refptr(new MockDBModelWorker()));
34 workers()->push_back(new MockUIModelWorker()); 34 workers()->push_back(make_scoped_refptr(new MockUIModelWorker()));
35 (*mutable_routing_info())[syncable::PREFERENCES] = GROUP_UI; 35 (*mutable_routing_info())[syncable::PREFERENCES] = GROUP_UI;
36 (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_UI; 36 (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_UI;
37 (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_DB; 37 (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_DB;
38 SyncerCommandTest::SetUp(); 38 SyncerCommandTest::SetUp();
39 } 39 }
40 40
41 void CreateLocalItem(const std::string& item_id, 41 void CreateLocalItem(const std::string& item_id,
42 const std::string& parent_id, 42 const std::string& parent_id,
43 const syncable::ModelType& type) { 43 const syncable::ModelType& type) {
44 ScopedDirLookup dir(syncdb()->manager(), syncdb()->name()); 44 ScopedDirLookup dir(syncdb()->manager(), syncdb()->name());
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_DB); 98 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_DB);
99 EXPECT_EQ(1, status->update_progress().VerifiedUpdatesSize()); 99 EXPECT_EQ(1, status->update_progress().VerifiedUpdatesSize());
100 } 100 }
101 { 101 {
102 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_PASSIVE); 102 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_PASSIVE);
103 EXPECT_EQ(0, status->update_progress().VerifiedUpdatesSize()); 103 EXPECT_EQ(0, status->update_progress().VerifiedUpdatesSize());
104 } 104 }
105 } 105 }
106 106
107 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/process_commit_response_command_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698