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

Side by Side Diff: chrome/common/common_param_traits_unittest.cc

Issue 8368004: Move common_param_traits and webkit_param_traits to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/extensions/extension_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h> 5 #include <string.h>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/public/common/common_param_traits.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
13 #include "ipc/ipc_message_utils.h" 13 #include "ipc/ipc_message_utils.h"
14 #include "net/base/host_port_pair.h" 14 #include "net/base/host_port_pair.h"
15 #include "printing/backend/print_backend.h" 15 #include "printing/backend/print_backend.h"
16 #include "printing/page_range.h" 16 #include "printing/page_range.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
20 20
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL); 178 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
179 IPC::ParamTraits<net::HostPortPair>::Write(&msg, input); 179 IPC::ParamTraits<net::HostPortPair>::Write(&msg, input);
180 180
181 net::HostPortPair output; 181 net::HostPortPair output;
182 void* iter = NULL; 182 void* iter = NULL;
183 EXPECT_TRUE(IPC::ParamTraits<net::HostPortPair>::Read(&msg, &iter, &output)); 183 EXPECT_TRUE(IPC::ParamTraits<net::HostPortPair>::Read(&msg, &iter, &output));
184 EXPECT_EQ(input.host(), output.host()); 184 EXPECT_EQ(input.host(), output.host());
185 EXPECT_EQ(input.port(), output.port()); 185 EXPECT_EQ(input.port(), output.port());
186 } 186 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/extensions/extension_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698