OLD | NEW |
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 Loading... |
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 OVERRIDE { |
| 66 return syncer::SyncDataList(); |
| 67 } |
| 68 |
64 void SetChangeOutput(syncer::SyncChangeList *change_output) { | 69 void SetChangeOutput(syncer::SyncChangeList *change_output) { |
65 change_output_ = change_output; | 70 change_output_ = change_output; |
66 } | 71 } |
67 | 72 |
68 private: | 73 private: |
69 syncer::SyncChangeList *change_output_; | 74 syncer::SyncChangeList *change_output_; |
70 }; | 75 }; |
71 | 76 |
72 class FakeThemeService : public ThemeService { | 77 class FakeThemeService : public ThemeService { |
73 public: | 78 public: |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 | 619 |
615 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { | 620 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { |
616 // Set up theme service to use custom theme that was installed by policy. | 621 // Set up theme service to use custom theme that was installed by policy. |
617 fake_theme_service_->SetTheme(theme_extension_.get()); | 622 fake_theme_service_->SetTheme(theme_extension_.get()); |
618 | 623 |
619 syncer::SyncDataList data_list = | 624 syncer::SyncDataList data_list = |
620 theme_sync_service_->GetAllSyncData(syncer::THEMES); | 625 theme_sync_service_->GetAllSyncData(syncer::THEMES); |
621 | 626 |
622 ASSERT_EQ(0u, data_list.size()); | 627 ASSERT_EQ(0u, data_list.size()); |
623 } | 628 } |
OLD | NEW |