| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/content_settings/content_settings_policy_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "chrome/browser/content_settings/content_settings_mock_observer.h" | 9 #include "chrome/browser/content_settings/content_settings_mock_observer.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/test/base/testing_browser_process_test.h" |
| 14 #include "chrome/test/base/testing_pref_service.h" | 15 #include "chrome/test/base/testing_pref_service.h" |
| 15 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
| 16 #include "chrome/test/testing_browser_process_test.h" | |
| 17 #include "content/browser/browser_thread.h" | 17 #include "content/browser/browser_thread.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 | 20 |
| 21 using ::testing::_; | 21 using ::testing::_; |
| 22 | 22 |
| 23 namespace content_settings { | 23 namespace content_settings { |
| 24 | 24 |
| 25 class PolicyDefaultProviderTest : public TestingBrowserProcessTest { | 25 class PolicyDefaultProviderTest : public TestingBrowserProcessTest { |
| 26 public: | 26 public: |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 provider.GetContentSetting( | 217 provider.GetContentSetting( |
| 218 google_url, | 218 google_url, |
| 219 google_url, | 219 google_url, |
| 220 CONTENT_SETTINGS_TYPE_PLUGINS, | 220 CONTENT_SETTINGS_TYPE_PLUGINS, |
| 221 "someplugin")); | 221 "someplugin")); |
| 222 | 222 |
| 223 provider.ShutdownOnUIThread(); | 223 provider.ShutdownOnUIThread(); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace content_settings | 226 } // namespace content_settings |
| OLD | NEW |