OLD | NEW |
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 Loading... |
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 |
OLD | NEW |