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

Side by Side Diff: chrome/common/extensions/permissions/media_galleries_permission_unittest.cc

Issue 201203006: Move basic API permissions code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move moar things Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698