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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698