OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/pickle.h" | 5 #include "base/pickle.h" |
6 #include "base/values.h" | 6 #include "base/values.h" |
7 #include "chrome/common/extensions/extension_messages.h" | 7 #include "extensions/common/extension_messages.h" |
8 #include "extensions/common/permissions/manifest_permission.h" | 8 #include "extensions/common/permissions/manifest_permission.h" |
9 #include "extensions/common/permissions/manifest_permission_set.h" | 9 #include "extensions/common/permissions/manifest_permission_set.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 class MockManifestPermission : public ManifestPermission { | 15 class MockManifestPermission : public ManifestPermission { |
16 public: | 16 public: |
17 MockManifestPermission(const std::string& name) | 17 MockManifestPermission(const std::string& name) |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 EXPECT_EQ(expected_permissions, result); | 263 EXPECT_EQ(expected_permissions, result); |
264 | 264 |
265 // |result| = |permissions1| - |permissions2| --> | 265 // |result| = |permissions1| - |permissions2| --> |
266 // |result| intersect |permissions2| == empty_set | 266 // |result| intersect |permissions2| == empty_set |
267 ManifestPermissionSet result2; | 267 ManifestPermissionSet result2; |
268 ManifestPermissionSet::Intersection(result, permissions2, &result2); | 268 ManifestPermissionSet::Intersection(result, permissions2, &result2); |
269 EXPECT_TRUE(result2.empty()); | 269 EXPECT_TRUE(result2.empty()); |
270 } | 270 } |
271 | 271 |
272 } // namespace extensions | 272 } // namespace extensions |
OLD | NEW |