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

Side by Side Diff: chrome/common/extensions/permissions/socket_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/common/extensions/permissions/socket_permission.h"
10 #include "chrome/common/extensions/permissions/socket_permission_data.h"
11 #include "extensions/common/permissions/permissions_info.h" 9 #include "extensions/common/permissions/permissions_info.h"
10 #include "extensions/common/permissions/socket_permission.h"
11 #include "extensions/common/permissions/socket_permission_data.h"
12 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 namespace { 17 namespace {
18 18
19 using content::SocketPermissionRequest; 19 using content::SocketPermissionRequest;
20 20
21 void ParseTest(const std::string& permission, 21 void ParseTest(const std::string& permission,
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 scoped_ptr<base::Value> vtmp(permission1->ToValue()); 324 scoped_ptr<base::Value> vtmp(permission1->ToValue());
325 ASSERT_TRUE(vtmp); 325 ASSERT_TRUE(vtmp);
326 ASSERT_TRUE(permission2->FromValue(vtmp.get(), NULL)); 326 ASSERT_TRUE(permission2->FromValue(vtmp.get(), NULL));
327 EXPECT_TRUE(permission1->Equal(permission2.get())); 327 EXPECT_TRUE(permission1->Equal(permission2.get()));
328 } 328 }
329 329
330 } // namespace 330 } // namespace
331 331
332 } // namespace extensions 332 } // namespace extensions
333 333
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698