| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <set> | 5 #include <set> |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "extensions/common/api/sockets/sockets_manifest_permission.h" | 10 #include "extensions/common/api/sockets/sockets_manifest_permission.h" |
| 11 #include "extensions/common/extension_messages.h" | |
| 12 #include "extensions/common/manifest_constants.h" | 11 #include "extensions/common/manifest_constants.h" |
| 13 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 using content::SocketPermissionRequest; | 15 using content::SocketPermissionRequest; |
| 17 | 16 |
| 18 namespace extensions { | 17 namespace extensions { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 new SocketsManifestPermission()); | 399 new SocketsManifestPermission()); |
| 401 | 400 |
| 402 IPC::Message m; | 401 IPC::Message m; |
| 403 ipc_perm->Write(&m); | 402 ipc_perm->Write(&m); |
| 404 PickleIterator iter(m); | 403 PickleIterator iter(m); |
| 405 EXPECT_TRUE(ipc_perm2->Read(&m, &iter)); | 404 EXPECT_TRUE(ipc_perm2->Read(&m, &iter)); |
| 406 EXPECT_TRUE(permission->Equal(ipc_perm2.get())); | 405 EXPECT_TRUE(permission->Equal(ipc_perm2.get())); |
| 407 } | 406 } |
| 408 | 407 |
| 409 } // namespace extensions | 408 } // namespace extensions |
| OLD | NEW |