OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/extensions/extension_service_unittest.h" | 5 #include "chrome/browser/extensions/extension_service_unittest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "chrome/common/chrome_paths.h" | 71 #include "chrome/common/chrome_paths.h" |
72 #include "chrome/common/chrome_switches.h" | 72 #include "chrome/common/chrome_switches.h" |
73 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 73 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
74 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 74 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
75 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 75 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
76 #include "chrome/common/extensions/manifest_url_handler.h" | 76 #include "chrome/common/extensions/manifest_url_handler.h" |
77 #include "chrome/common/pref_names.h" | 77 #include "chrome/common/pref_names.h" |
78 #include "chrome/common/url_constants.h" | 78 #include "chrome/common/url_constants.h" |
79 #include "chrome/test/base/scoped_browser_locale.h" | 79 #include "chrome/test/base/scoped_browser_locale.h" |
80 #include "chrome/test/base/testing_profile.h" | 80 #include "chrome/test/base/testing_profile.h" |
81 #include "components/user_prefs/pref_registry_syncable.h" | 81 #include "components/pref_registry/pref_registry_syncable.h" |
82 #include "content/public/browser/dom_storage_context.h" | 82 #include "content/public/browser/dom_storage_context.h" |
83 #include "content/public/browser/gpu_data_manager.h" | 83 #include "content/public/browser/gpu_data_manager.h" |
84 #include "content/public/browser/indexed_db_context.h" | 84 #include "content/public/browser/indexed_db_context.h" |
85 #include "content/public/browser/notification_registrar.h" | 85 #include "content/public/browser/notification_registrar.h" |
86 #include "content/public/browser/notification_service.h" | 86 #include "content/public/browser/notification_service.h" |
87 #include "content/public/browser/plugin_service.h" | 87 #include "content/public/browser/plugin_service.h" |
88 #include "content/public/browser/render_process_host.h" | 88 #include "content/public/browser/render_process_host.h" |
89 #include "content/public/browser/storage_partition.h" | 89 #include "content/public/browser/storage_partition.h" |
90 #include "content/public/common/content_constants.h" | 90 #include "content/public/common/content_constants.h" |
91 #include "content/public/test/test_utils.h" | 91 #include "content/public/test/test_utils.h" |
(...skipping 6819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6911 // ReconcileKnownDisabled(). | 6911 // ReconcileKnownDisabled(). |
6912 service_->EnableExtension(good2); | 6912 service_->EnableExtension(good2); |
6913 service_->ReconcileKnownDisabled(); | 6913 service_->ReconcileKnownDisabled(); |
6914 expected_extensions.insert(good2); | 6914 expected_extensions.insert(good2); |
6915 expected_disabled_extensions.erase(good2); | 6915 expected_disabled_extensions.erase(good2); |
6916 | 6916 |
6917 EXPECT_EQ(expected_extensions, registry_->enabled_extensions().GetIDs()); | 6917 EXPECT_EQ(expected_extensions, registry_->enabled_extensions().GetIDs()); |
6918 EXPECT_EQ(expected_disabled_extensions, | 6918 EXPECT_EQ(expected_disabled_extensions, |
6919 registry_->disabled_extensions().GetIDs()); | 6919 registry_->disabled_extensions().GetIDs()); |
6920 } | 6920 } |
OLD | NEW |