| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/json/json_parser.h" | 9 #include "base/json/json_parser.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/prefs/pref_registry_simple.h" | |
| 12 #include "base/prefs/testing_pref_service.h" | |
| 13 #include "base/values.h" | 11 #include "base/values.h" |
| 14 #include "chrome/browser/extensions/extension_management.h" | 12 #include "chrome/browser/extensions/extension_management.h" |
| 15 #include "chrome/browser/extensions/extension_management_internal.h" | 13 #include "chrome/browser/extensions/extension_management_internal.h" |
| 16 #include "chrome/browser/extensions/extension_management_test_util.h" | 14 #include "chrome/browser/extensions/extension_management_test_util.h" |
| 17 #include "chrome/browser/extensions/external_policy_loader.h" | 15 #include "chrome/browser/extensions/external_policy_loader.h" |
| 18 #include "chrome/browser/extensions/standard_management_policy_provider.h" | 16 #include "chrome/browser/extensions/standard_management_policy_provider.h" |
| 17 #include "components/prefs/pref_registry_simple.h" |
| 18 #include "components/prefs/testing_pref_service.h" |
| 19 #include "extensions/browser/pref_names.h" | 19 #include "extensions/browser/pref_names.h" |
| 20 #include "extensions/common/manifest.h" | 20 #include "extensions/common/manifest.h" |
| 21 #include "extensions/common/manifest_constants.h" | 21 #include "extensions/common/manifest_constants.h" |
| 22 #include "extensions/common/permissions/api_permission.h" | 22 #include "extensions/common/permissions/api_permission.h" |
| 23 #include "extensions/common/permissions/permissions_info.h" | 23 #include "extensions/common/permissions/permissions_info.h" |
| 24 #include "extensions/common/url_pattern.h" | 24 #include "extensions/common/url_pattern.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
| 27 | 27 |
| 28 namespace extensions { | 28 namespace extensions { |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 EXPECT_FALSE(error.empty()); | 873 EXPECT_FALSE(error.empty()); |
| 874 | 874 |
| 875 CreateExtension(Manifest::INTERNAL); | 875 CreateExtension(Manifest::INTERNAL); |
| 876 error.clear(); | 876 error.clear(); |
| 877 EXPECT_FALSE(MustRemainEnabled(extension_.get(), NULL)); | 877 EXPECT_FALSE(MustRemainEnabled(extension_.get(), NULL)); |
| 878 EXPECT_FALSE(MustRemainEnabled(extension_.get(), &error)); | 878 EXPECT_FALSE(MustRemainEnabled(extension_.get(), &error)); |
| 879 EXPECT_TRUE(error.empty()); | 879 EXPECT_TRUE(error.empty()); |
| 880 } | 880 } |
| 881 | 881 |
| 882 } // namespace extensions | 882 } // namespace extensions |
| OLD | NEW |