| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // These tests make sure MediaGalleriesPermission values are parsed correctly. | 5 // These tests make sure MediaGalleriesPermission values are parsed correctly. |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/common/extensions/permissions/media_galleries_permission.h" | |
| 9 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h
" | |
| 10 #include "extensions/common/permissions/api_permission.h" | 8 #include "extensions/common/permissions/api_permission.h" |
| 9 #include "extensions/common/permissions/media_galleries_permission.h" |
| 10 #include "extensions/common/permissions/media_galleries_permission_data.h" |
| 11 #include "extensions/common/permissions/permissions_info.h" | 11 #include "extensions/common/permissions/permissions_info.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using content::SocketPermissionRequest; | 14 using content::SocketPermissionRequest; |
| 15 using extensions::SocketPermissionData; | 15 using extensions::SocketPermissionData; |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 vtmp = permission1->ToValue(); | 267 vtmp = permission1->ToValue(); |
| 268 ASSERT_TRUE(vtmp); | 268 ASSERT_TRUE(vtmp); |
| 269 ASSERT_TRUE(permission2->FromValue(vtmp.get(), NULL)); | 269 ASSERT_TRUE(permission2->FromValue(vtmp.get(), NULL)); |
| 270 EXPECT_TRUE(permission1->Equal(permission2.get())); | 270 EXPECT_TRUE(permission1->Equal(permission2.get())); |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace | 273 } // namespace |
| 274 | 274 |
| 275 } // namespace extensions | 275 } // namespace extensions |
| OLD | NEW |