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 16 matching lines...) Expand all Loading... |
27 #include "sync/api/fake_sync_change_processor.h" | 27 #include "sync/api/fake_sync_change_processor.h" |
28 #include "sync/api/sync_change_processor_wrapper_for_test.h" | 28 #include "sync/api/sync_change_processor_wrapper_for_test.h" |
29 #include "sync/api/sync_error.h" | 29 #include "sync/api/sync_error.h" |
30 #include "sync/api/sync_error_factory_mock.h" | 30 #include "sync/api/sync_error_factory_mock.h" |
31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | 31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
32 #include "sync/protocol/sync.pb.h" | 32 #include "sync/protocol/sync.pb.h" |
33 #include "sync/protocol/theme_specifics.pb.h" | 33 #include "sync/protocol/theme_specifics.pb.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 | 35 |
36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
37 #include "chrome/browser/chromeos/login/users/user_manager.h" | 37 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" |
38 #include "chrome/browser/chromeos/settings/cros_settings.h" | 38 #include "chrome/browser/chromeos/settings/cros_settings.h" |
39 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 39 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
40 #endif | 40 #endif |
41 | 41 |
42 using std::string; | 42 using std::string; |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 static const char kCustomThemeName[] = "name"; | 46 static const char kCustomThemeName[] = "name"; |
47 static const char kCustomThemeUrl[] = "http://update.url/foo"; | 47 static const char kCustomThemeUrl[] = "http://update.url/foo"; |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 654 |
655 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { | 655 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { |
656 // Set up theme service to use custom theme that was installed by policy. | 656 // Set up theme service to use custom theme that was installed by policy. |
657 fake_theme_service_->SetTheme(theme_extension_.get()); | 657 fake_theme_service_->SetTheme(theme_extension_.get()); |
658 | 658 |
659 syncer::SyncDataList data_list = | 659 syncer::SyncDataList data_list = |
660 theme_sync_service_->GetAllSyncData(syncer::THEMES); | 660 theme_sync_service_->GetAllSyncData(syncer::THEMES); |
661 | 661 |
662 ASSERT_EQ(0u, data_list.size()); | 662 ASSERT_EQ(0u, data_list.size()); |
663 } | 663 } |
OLD | NEW |