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/api_permission_set.h" | 8 #include "extensions/common/permissions/api_permission_set.h" |
9 #include "extensions/common/permissions/permissions_info.h" | 9 #include "extensions/common/permissions/permissions_info.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 TEST(APIPermissionSetTest, General) { | 15 TEST(APIPermissionSetTest, General) { |
16 APIPermissionSet apis; | 16 APIPermissionSet apis; |
17 apis.insert(APIPermission::kTab); | 17 apis.insert(APIPermission::kTab); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 EXPECT_EQ(apis.find(APIPermission::kFileSystemWrite)->id(), | 304 EXPECT_EQ(apis.find(APIPermission::kFileSystemWrite)->id(), |
305 APIPermission::kFileSystemWrite); | 305 APIPermission::kFileSystemWrite); |
306 EXPECT_EQ(apis.find(APIPermission::kFileSystemDirectory)->id(), | 306 EXPECT_EQ(apis.find(APIPermission::kFileSystemDirectory)->id(), |
307 APIPermission::kFileSystemDirectory); | 307 APIPermission::kFileSystemDirectory); |
308 EXPECT_EQ(apis.find(APIPermission::kFileSystemWriteDirectory)->id(), | 308 EXPECT_EQ(apis.find(APIPermission::kFileSystemWriteDirectory)->id(), |
309 APIPermission::kFileSystemWriteDirectory); | 309 APIPermission::kFileSystemWriteDirectory); |
310 EXPECT_EQ(apis.size(), 3u); | 310 EXPECT_EQ(apis.size(), 3u); |
311 } | 311 } |
312 | 312 |
313 } // namespace extensions | 313 } // namespace extensions |
OLD | NEW |