| OLD | NEW |
| 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/common/extensions/extension_permission_set.h" | 5 #include "chrome/common/extensions/extension_permission_set.h" |
| 6 | 6 |
| 7 #include "base/json/json_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
| 13 #include "chrome/common/extensions/extension_constants.h" | 13 #include "chrome/common/extensions/extension_constants.h" |
| 14 #include "chrome/common/extensions/extension_error_utils.h" | 14 #include "chrome/common/extensions/extension_error_utils.h" |
| 15 #include "chrome/common/extensions/extension_permission_set.h" | 15 #include "chrome/common/extensions/extension_permission_set.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 AddPattern(&non_empty_extent, "http://www.google.com/*"); | 1296 AddPattern(&non_empty_extent, "http://www.google.com/*"); |
| 1297 | 1297 |
| 1298 perm_set = new ExtensionPermissionSet( | 1298 perm_set = new ExtensionPermissionSet( |
| 1299 empty_apis, non_empty_extent, empty_extent); | 1299 empty_apis, non_empty_extent, empty_extent); |
| 1300 EXPECT_FALSE(perm_set->IsEmpty()); | 1300 EXPECT_FALSE(perm_set->IsEmpty()); |
| 1301 | 1301 |
| 1302 perm_set = new ExtensionPermissionSet( | 1302 perm_set = new ExtensionPermissionSet( |
| 1303 empty_apis, empty_extent, non_empty_extent); | 1303 empty_apis, empty_extent, non_empty_extent); |
| 1304 EXPECT_FALSE(perm_set->IsEmpty()); | 1304 EXPECT_FALSE(perm_set->IsEmpty()); |
| 1305 } | 1305 } |
| OLD | NEW |