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

Side by Side Diff: net/socket/udp_socket_perftest.cc

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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
« no previous file with comments | « net/socket/udp_socket.h ('k') | net/socket/udp_socket_posix.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/weak_ptr.h" 6 #include "base/memory/weak_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/test/perf_time_logger.h" 9 #include "base/test/perf_time_logger.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
11 #include "net/base/ip_endpoint.h" 11 #include "net/base/ip_endpoint.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 #include "net/base/test_completion_callback.h" 13 #include "net/base/test_completion_callback.h"
14 #include "net/log/net_log_source.h" 14 #include "net/log/net_log_source.h"
15 #include "net/socket/udp_client_socket.h"
16 #include "net/socket/udp_server_socket.h"
17 #include "net/socket/udp_socket.h"
15 #include "net/test/gtest_util.h" 18 #include "net/test/gtest_util.h"
16 #include "net/test/net_test_suite.h" 19 #include "net/test/net_test_suite.h"
17 #include "net/udp/udp_client_socket.h"
18 #include "net/udp/udp_server_socket.h"
19 #include "net/udp/udp_socket.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "testing/platform_test.h" 22 #include "testing/platform_test.h"
23 23
24 using net::test::IsOk; 24 using net::test::IsOk;
25 25
26 namespace net { 26 namespace net {
27 27
28 namespace { 28 namespace {
29 29
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 TEST_F(UDPSocketPerfTest, WriteNonBlocking) { 130 TEST_F(UDPSocketPerfTest, WriteNonBlocking) {
131 base::PerfTimeLogger timer("UDP_socket_write_nonblocking"); 131 base::PerfTimeLogger timer("UDP_socket_write_nonblocking");
132 WriteBenchmark(true); 132 WriteBenchmark(true);
133 } 133 }
134 134
135 } // namespace 135 } // namespace
136 136
137 } // namespace net 137 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/udp_socket.h ('k') | net/socket/udp_socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698