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" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
13 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" | 13 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" |
14 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" | 14 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
17 #include "sync/api/attachments/attachment_id.h" | 17 #include "sync/api/attachments/attachment_id.h" |
18 #include "sync/api/attachments/attachment_service_proxy_for_test.h" | |
19 #include "sync/api/sync_change.h" | 18 #include "sync/api/sync_change.h" |
20 #include "sync/api/sync_error_factory_mock.h" | 19 #include "sync/api/sync_error_factory_mock.h" |
| 20 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
21 #include "sync/protocol/sync.pb.h" | 21 #include "sync/protocol/sync.pb.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
25 #include "components/user_manager/user_image/default_user_images.h" | 25 #include "components/user_manager/user_image/default_user_images.h" |
26 #endif | 26 #endif |
27 | 27 |
28 using sync_pb::ManagedUserSpecifics; | 28 using sync_pb::ManagedUserSpecifics; |
29 using syncer::SUPERVISED_USERS; | 29 using syncer::SUPERVISED_USERS; |
30 using syncer::SyncChange; | 30 using syncer::SyncChange; |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 361 |
362 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( | 362 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( |
363 "chrome-avatar-index:x", | 363 "chrome-avatar-index:x", |
364 &avatar)); | 364 &avatar)); |
365 | 365 |
366 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( | 366 EXPECT_FALSE(SupervisedUserSyncService::GetAvatarIndex( |
367 "chromeos-avatar-index:5", | 367 "chromeos-avatar-index:5", |
368 &avatar)); | 368 &avatar)); |
369 #endif | 369 #endif |
370 } | 370 } |
OLD | NEW |