OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #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 "chrome/common/extensions/api/sockets/sockets_manifest_permission.h" | 10 #include "chrome/common/extensions/api/sockets/sockets_manifest_permission.h" |
11 #include "chrome/common/extensions/extension_messages.h" | 11 #include "extensions/common/extension_messages.h" |
12 #include "extensions/common/manifest_constants.h" | 12 #include "extensions/common/manifest_constants.h" |
13 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using content::SocketPermissionRequest; | 16 using content::SocketPermissionRequest; |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 new SocketsManifestPermission()); | 394 new SocketsManifestPermission()); |
395 | 395 |
396 IPC::Message m; | 396 IPC::Message m; |
397 ipc_perm->Write(&m); | 397 ipc_perm->Write(&m); |
398 PickleIterator iter(m); | 398 PickleIterator iter(m); |
399 EXPECT_TRUE(ipc_perm2->Read(&m, &iter)); | 399 EXPECT_TRUE(ipc_perm2->Read(&m, &iter)); |
400 EXPECT_TRUE(permission->Equal(ipc_perm2.get())); | 400 EXPECT_TRUE(permission->Equal(ipc_perm2.get())); |
401 } | 401 } |
402 | 402 |
403 } // namespace extensions | 403 } // namespace extensions |
OLD | NEW |