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