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

Side by Side Diff: chrome/browser/themes/theme_syncable_service_unittest.cc

Issue 23129007: sync: Add GetAllSyncData to sync/api (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 "chrome/browser/themes/theme_syncable_service.h" 5 #include "chrome/browser/themes/theme_syncable_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // syncer::SyncChangeProcessor implementation. 55 // syncer::SyncChangeProcessor implementation.
56 virtual syncer::SyncError ProcessSyncChanges( 56 virtual syncer::SyncError ProcessSyncChanges(
57 const tracked_objects::Location& from_here, 57 const tracked_objects::Location& from_here,
58 const syncer::SyncChangeList& change_list) OVERRIDE { 58 const syncer::SyncChangeList& change_list) OVERRIDE {
59 change_output_->insert(change_output_->end(), change_list.begin(), 59 change_output_->insert(change_output_->end(), change_list.begin(),
60 change_list.end()); 60 change_list.end());
61 return syncer::SyncError(); 61 return syncer::SyncError();
62 } 62 }
63 63
64 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const {
65 return syncer::SyncDataList();
66 }
67
64 void SetChangeOutput(syncer::SyncChangeList *change_output) { 68 void SetChangeOutput(syncer::SyncChangeList *change_output) {
65 change_output_ = change_output; 69 change_output_ = change_output;
66 } 70 }
67 71
68 private: 72 private:
69 syncer::SyncChangeList *change_output_; 73 syncer::SyncChangeList *change_output_;
70 }; 74 };
71 75
72 class FakeThemeService : public ThemeService { 76 class FakeThemeService : public ThemeService {
73 public: 77 public:
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 618
615 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { 619 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) {
616 // Set up theme service to use custom theme that was installed by policy. 620 // Set up theme service to use custom theme that was installed by policy.
617 fake_theme_service_->SetTheme(theme_extension_.get()); 621 fake_theme_service_->SetTheme(theme_extension_.get());
618 622
619 syncer::SyncDataList data_list = 623 syncer::SyncDataList data_list =
620 theme_sync_service_->GetAllSyncData(syncer::THEMES); 624 theme_sync_service_->GetAllSyncData(syncer::THEMES);
621 625
622 ASSERT_EQ(0u, data_list.size()); 626 ASSERT_EQ(0u, data_list.size());
623 } 627 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698