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

Side by Side Diff: extensions/common/api/sockets/sockets_manifest_permission_unittest.cc

Issue 559523004: Cleanup: Remove unneeded extension_messages.h usage and ifdef out some extensions code usage when e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698