OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/prefs/scoped_user_pref_update.h" | 8 #include "base/prefs/scoped_user_pref_update.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/managed_mode/managed_user_sync_service.h" | 12 #include "chrome/browser/managed_mode/managed_user_sync_service.h" |
13 #include "chrome/browser/managed_mode/managed_user_sync_service_factory.h" | 13 #include "chrome/browser/managed_mode/managed_user_sync_service_factory.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
16 #include "content/public/browser/browser_thread.h" | |
17 #include "sync/api/sync_change.h" | 16 #include "sync/api/sync_change.h" |
18 #include "sync/api/sync_error_factory_mock.h" | 17 #include "sync/api/sync_error_factory_mock.h" |
19 #include "sync/protocol/sync.pb.h" | 18 #include "sync/protocol/sync.pb.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
21 | 20 |
22 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
23 #include "chrome/browser/chromeos/login/default_user_images.h" | 22 #include "chrome/browser/chromeos/login/default_user_images.h" |
24 #endif | 23 #endif |
25 | 24 |
26 using sync_pb::ManagedUserSpecifics; | 25 using sync_pb::ManagedUserSpecifics; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chrome-avatar-index:", | 341 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chrome-avatar-index:", |
343 &avatar)); | 342 &avatar)); |
344 | 343 |
345 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chrome-avatar-index:x", | 344 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chrome-avatar-index:x", |
346 &avatar)); | 345 &avatar)); |
347 | 346 |
348 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chromeos-avatar-index:5", | 347 EXPECT_FALSE(ManagedUserSyncService::GetAvatarIndex("chromeos-avatar-index:5", |
349 &avatar)); | 348 &avatar)); |
350 #endif | 349 #endif |
351 } | 350 } |
OLD | NEW |