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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.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 "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 14 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
15 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" | 15 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac
tory.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
18 #include "components/prefs/scoped_user_pref_update.h" | 18 #include "components/prefs/scoped_user_pref_update.h" |
| 19 #include "components/sync/api/attachments/attachment_id.h" |
| 20 #include "components/sync/api/sync_change.h" |
| 21 #include "components/sync/api/sync_error_factory_mock.h" |
| 22 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" |
| 23 #include "components/sync/protocol/sync.pb.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 24 #include "content/public/test/test_browser_thread_bundle.h" |
20 #include "sync/api/attachments/attachment_id.h" | |
21 #include "sync/api/sync_change.h" | |
22 #include "sync/api/sync_error_factory_mock.h" | |
23 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | |
24 #include "sync/protocol/sync.pb.h" | |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
28 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im
ages.h" | 28 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im
ages.h" |
29 #endif | 29 #endif |
30 | 30 |
31 using sync_pb::ManagedUserSpecifics; | 31 using sync_pb::ManagedUserSpecifics; |
32 using syncer::SUPERVISED_USERS; | 32 using syncer::SUPERVISED_USERS; |
33 using syncer::SyncChange; | 33 using syncer::SyncChange; |
34 using syncer::SyncChangeList; | 34 using syncer::SyncChangeList; |
(...skipping 326 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 |