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

Side by Side Diff: net/socket/udp_socket_unittest.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_posix.cc ('k') | net/socket/udp_socket_win.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/udp/udp_socket.h" 5 #include "net/socket/udp_socket.h"
6
7 #include "net/udp/udp_client_socket.h"
8 #include "net/udp/udp_server_socket.h"
9 6
10 #include "base/bind.h" 7 #include "base/bind.h"
11 #include "base/location.h" 8 #include "base/location.h"
12 #include "base/macros.h" 9 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
14 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
15 #include "base/run_loop.h" 12 #include "base/run_loop.h"
16 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
17 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
18 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
19 #include "net/base/ip_address.h" 16 #include "net/base/ip_address.h"
20 #include "net/base/ip_endpoint.h" 17 #include "net/base/ip_endpoint.h"
21 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
22 #include "net/base/test_completion_callback.h" 19 #include "net/base/test_completion_callback.h"
23 #include "net/log/net_log_event_type.h" 20 #include "net/log/net_log_event_type.h"
24 #include "net/log/net_log_source.h" 21 #include "net/log/net_log_source.h"
25 #include "net/log/test_net_log.h" 22 #include "net/log/test_net_log.h"
26 #include "net/log/test_net_log_entry.h" 23 #include "net/log/test_net_log_entry.h"
27 #include "net/log/test_net_log_util.h" 24 #include "net/log/test_net_log_util.h"
25 #include "net/socket/udp_client_socket.h"
26 #include "net/socket/udp_server_socket.h"
28 #include "net/test/gtest_util.h" 27 #include "net/test/gtest_util.h"
29 #include "net/test/net_test_suite.h" 28 #include "net/test/net_test_suite.h"
30 #include "testing/gmock/include/gmock/gmock.h" 29 #include "testing/gmock/include/gmock/gmock.h"
31 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
32 #include "testing/platform_test.h" 31 #include "testing/platform_test.h"
33 32
34 #if defined(OS_ANDROID) 33 #if defined(OS_ANDROID)
35 #include "base/android/build_info.h" 34 #include "base/android/build_info.h"
36 #endif 35 #endif
37 36
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 g_expected_traffic_type = QOSTrafficTypeExcellentEffort; 889 g_expected_traffic_type = QOSTrafficTypeExcellentEffort;
891 EXPECT_THAT(client.SetDiffServCodePoint(DSCP_NO_CHANGE), IsOk()); 890 EXPECT_THAT(client.SetDiffServCodePoint(DSCP_NO_CHANGE), IsOk());
892 g_expected_dscp = DSCP_DEFAULT; 891 g_expected_dscp = DSCP_DEFAULT;
893 g_expected_traffic_type = QOSTrafficTypeBestEffort; 892 g_expected_traffic_type = QOSTrafficTypeBestEffort;
894 EXPECT_THAT(client.SetDiffServCodePoint(DSCP_DEFAULT), IsOk()); 893 EXPECT_THAT(client.SetDiffServCodePoint(DSCP_DEFAULT), IsOk());
895 client.Close(); 894 client.Close();
896 } 895 }
897 #endif 896 #endif
898 897
899 } // namespace net 898 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/udp_socket_posix.cc ('k') | net/socket/udp_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698