| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/prefs/scoped_user_pref_update.h" | 9 #include "base/prefs/scoped_user_pref_update.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 namespace { | 39 namespace { |
| 40 | 40 |
| 41 class MockChangeProcessor : public SyncChangeProcessor { | 41 class MockChangeProcessor : public SyncChangeProcessor { |
| 42 public: | 42 public: |
| 43 MockChangeProcessor() {} | 43 MockChangeProcessor() {} |
| 44 virtual ~MockChangeProcessor() {} | 44 virtual ~MockChangeProcessor() {} |
| 45 | 45 |
| 46 // SyncChangeProcessor implementation: | 46 // SyncChangeProcessor implementation: |
| 47 virtual SyncError ProcessSyncChanges( | 47 virtual SyncError ProcessSyncChanges( |
| 48 const tracked_objects::Location& from_here, | 48 const tracked_objects::Location& from_here, |
| 49 const SyncChangeList& change_list) OVERRIDE; | 49 const SyncChangeList& change_list) override; |
| 50 | 50 |
| 51 virtual SyncDataList GetAllSyncData(syncer::ModelType type) const | 51 virtual SyncDataList GetAllSyncData(syncer::ModelType type) const |
| 52 OVERRIDE { | 52 override { |
| 53 return SyncDataList(); | 53 return SyncDataList(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 const SyncChangeList& changes() const { return change_list_; } | 56 const SyncChangeList& changes() const { return change_list_; } |
| 57 SyncChange GetChange(const std::string& id) const; | 57 SyncChange GetChange(const std::string& id) const; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 SyncChangeList change_list_; | 60 SyncChangeList change_list_; |
| 61 }; | 61 }; |
| 62 | 62 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( | 361 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( |
| 362 "chrome-avatar-index:x", | 362 "chrome-avatar-index:x", |
| 363 &avatar)); | 363 &avatar)); |
| 364 | 364 |
| 365 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( | 365 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( |
| 366 "chromeos-avatar-index:5", | 366 "chromeos-avatar-index:5", |
| 367 &avatar)); | 367 &avatar)); |
| 368 #endif | 368 #endif |
| 369 } | 369 } |
| OLD | NEW |