Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: extensions/common/permissions/manifest_permission_set_unittest.cc

Issue 559523004: Cleanup: Remove unneeded extension_messages.h usage and ifdef out some extensions code usage when e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "extensions/common/extension_messages.h"
8 #include "extensions/common/permissions/manifest_permission.h" 7 #include "extensions/common/permissions/manifest_permission.h"
9 #include "extensions/common/permissions/manifest_permission_set.h" 8 #include "extensions/common/permissions/manifest_permission_set.h"
10 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 namespace extensions { 12 namespace extensions {
14 13
15 class MockManifestPermission : public ManifestPermission { 14 class MockManifestPermission : public ManifestPermission {
16 public: 15 public:
17 MockManifestPermission(const std::string& name) 16 MockManifestPermission(const std::string& name)
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 EXPECT_EQ(expected_permissions, result); 226 EXPECT_EQ(expected_permissions, result);
228 227
229 // |result| = |permissions1| - |permissions2| --> 228 // |result| = |permissions1| - |permissions2| -->
230 // |result| intersect |permissions2| == empty_set 229 // |result| intersect |permissions2| == empty_set
231 ManifestPermissionSet result2; 230 ManifestPermissionSet result2;
232 ManifestPermissionSet::Intersection(result, permissions2, &result2); 231 ManifestPermissionSet::Intersection(result, permissions2, &result2);
233 EXPECT_TRUE(result2.empty()); 232 EXPECT_TRUE(result2.empty());
234 } 233 }
235 234
236 } // namespace extensions 235 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/api/sockets/sockets_manifest_permission_unittest.cc ('k') | extensions/renderer/module_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698