Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: chrome/browser/themes/theme_syncable_service_unittest.cc

Issue 559523004: Cleanup: Remove unneeded extension_messages.h usage and ifdef out some extensions code usage when e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/test_extension_system.h" 13 #include "chrome/browser/extensions/test_extension_system.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/themes/theme_service.h" 15 #include "chrome/browser/themes/theme_service.h"
16 #include "chrome/browser/themes/theme_service_factory.h" 16 #include "chrome/browser/themes/theme_service_factory.h"
17 #include "chrome/common/extensions/manifest_url_handler.h" 17 #include "chrome/common/extensions/manifest_url_handler.h"
18 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
19 #include "content/public/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "extensions/browser/extension_prefs.h" 20 #include "extensions/browser/extension_prefs.h"
21 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
22 #include "extensions/common/extension_messages.h"
23 #include "extensions/common/manifest_constants.h" 22 #include "extensions/common/manifest_constants.h"
24 #include "extensions/common/permissions/api_permission_set.h" 23 #include "extensions/common/permissions/api_permission_set.h"
25 #include "extensions/common/permissions/permission_set.h" 24 #include "extensions/common/permissions/permission_set.h"
26 #include "sync/api/attachments/attachment_id.h" 25 #include "sync/api/attachments/attachment_id.h"
27 #include "sync/api/fake_sync_change_processor.h" 26 #include "sync/api/fake_sync_change_processor.h"
28 #include "sync/api/sync_change_processor_wrapper_for_test.h" 27 #include "sync/api/sync_change_processor_wrapper_for_test.h"
29 #include "sync/api/sync_error.h" 28 #include "sync/api/sync_error.h"
30 #include "sync/api/sync_error_factory_mock.h" 29 #include "sync/api/sync_error_factory_mock.h"
31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h" 30 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
32 #include "sync/protocol/sync.pb.h" 31 #include "sync/protocol/sync.pb.h"
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 653
655 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { 654 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) {
656 // Set up theme service to use custom theme that was installed by policy. 655 // Set up theme service to use custom theme that was installed by policy.
657 fake_theme_service_->SetTheme(theme_extension_.get()); 656 fake_theme_service_->SetTheme(theme_extension_.get());
658 657
659 syncer::SyncDataList data_list = 658 syncer::SyncDataList data_list =
660 theme_sync_service_->GetAllSyncData(syncer::THEMES); 659 theme_sync_service_->GetAllSyncData(syncer::THEMES);
661 660
662 ASSERT_EQ(0u, data_list.size()); 661 ASSERT_EQ(0u, data_list.size());
663 } 662 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_tab_helper.cc ('k') | chrome/browser/ui/webui/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698