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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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 | Annotate | Revision Log
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/extension_messages.h"
18 #include "chrome/common/extensions/manifest_url_handler.h" 17 #include "chrome/common/extensions/manifest_url_handler.h"
19 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
20 #include "content/public/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
21 #include "extensions/common/extension.h" 20 #include "extensions/common/extension.h"
21 #include "extensions/common/extension_messages.h"
22 #include "extensions/common/manifest_constants.h" 22 #include "extensions/common/manifest_constants.h"
23 #include "extensions/common/permissions/api_permission_set.h" 23 #include "extensions/common/permissions/api_permission_set.h"
24 #include "extensions/common/permissions/permission_set.h" 24 #include "extensions/common/permissions/permission_set.h"
25 #include "sync/api/fake_sync_change_processor.h" 25 #include "sync/api/fake_sync_change_processor.h"
26 #include "sync/api/sync_change_processor_wrapper_for_test.h" 26 #include "sync/api/sync_change_processor_wrapper_for_test.h"
27 #include "sync/api/sync_error.h" 27 #include "sync/api/sync_error.h"
28 #include "sync/api/sync_error_factory_mock.h" 28 #include "sync/api/sync_error_factory_mock.h"
29 #include "sync/protocol/sync.pb.h" 29 #include "sync/protocol/sync.pb.h"
30 #include "sync/protocol/theme_specifics.pb.h" 30 #include "sync/protocol/theme_specifics.pb.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 650
651 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) { 651 TEST_F(PolicyInstalledThemeTest, InstallThemeByPolicy) {
652 // Set up theme service to use custom theme that was installed by policy. 652 // Set up theme service to use custom theme that was installed by policy.
653 fake_theme_service_->SetTheme(theme_extension_.get()); 653 fake_theme_service_->SetTheme(theme_extension_.get());
654 654
655 syncer::SyncDataList data_list = 655 syncer::SyncDataList data_list =
656 theme_sync_service_->GetAllSyncData(syncer::THEMES); 656 theme_sync_service_->GetAllSyncData(syncer::THEMES);
657 657
658 ASSERT_EQ(0u, data_list.size()); 658 ASSERT_EQ(0u, data_list.size());
659 } 659 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698