| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/common/common_param_traits.h" | 10 #include "chrome/common/common_param_traits.h" |
| 11 #include "chrome/common/geoposition.h" | 11 #include "chrome/common/geoposition.h" |
| 12 #include "content/common/common_param_traits.h" |
| 12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 13 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 14 #include "ipc/ipc_message_utils.h" | 15 #include "ipc/ipc_message_utils.h" |
| 15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
| 16 #include "printing/backend/print_backend.h" | 17 #include "printing/backend/print_backend.h" |
| 17 #include "printing/page_range.h" | 18 #include "printing/page_range.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
| 20 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/rect.h" |
| 21 | 22 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 301 |
| 301 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL); | 302 IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL); |
| 302 IPC::ParamTraits<net::HostPortPair>::Write(&msg, input); | 303 IPC::ParamTraits<net::HostPortPair>::Write(&msg, input); |
| 303 | 304 |
| 304 net::HostPortPair output; | 305 net::HostPortPair output; |
| 305 void* iter = NULL; | 306 void* iter = NULL; |
| 306 EXPECT_TRUE(IPC::ParamTraits<net::HostPortPair>::Read(&msg, &iter, &output)); | 307 EXPECT_TRUE(IPC::ParamTraits<net::HostPortPair>::Read(&msg, &iter, &output)); |
| 307 EXPECT_EQ(input.host(), output.host()); | 308 EXPECT_EQ(input.host(), output.host()); |
| 308 EXPECT_EQ(input.port(), output.port()); | 309 EXPECT_EQ(input.port(), output.port()); |
| 309 } | 310 } |
| OLD | NEW |