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

Side by Side Diff: mojo/services/network/udp_socket_apptest.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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 | « mojo/services/network/tcp_server_socket_impl.h ('k') | mojo/services/network/udp_socket_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/macros.h" 5 #include "base/macros.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "mojo/application/public/cpp/application_connection.h" 8 #include "mojo/application/public/cpp/application_connection.h"
9 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 #include "mojo/application/public/cpp/application_test_base.h" 10 #include "mojo/application/public/cpp/application_test_base.h"
11 #include "mojo/public/cpp/bindings/callback.h"
11 #include "mojo/services/network/public/cpp/udp_socket_wrapper.h" 12 #include "mojo/services/network/public/cpp/udp_socket_wrapper.h"
12 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 13 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
13 #include "mojo/services/network/public/interfaces/udp_socket.mojom.h" 14 #include "mojo/services/network/public/interfaces/udp_socket.mojom.h"
14 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace service { 19 namespace service {
20 namespace { 20 namespace {
21 21
22 NetAddressPtr GetLocalHostWithAnyPort() { 22 NetAddressPtr GetLocalHostWithAnyPort() {
23 NetAddressPtr addr(NetAddress::New()); 23 NetAddressPtr addr(NetAddress::New());
24 addr->family = NET_ADDRESS_FAMILY_IPV4; 24 addr->family = NET_ADDRESS_FAMILY_IPV4;
25 addr->ipv4 = NetAddressIPv4::New(); 25 addr->ipv4 = NetAddressIPv4::New();
26 addr->ipv4->port = 0; 26 addr->ipv4->port = 0;
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 receive_callbacks[j].result()->code); 645 receive_callbacks[j].result()->code);
646 EXPECT_FALSE(receive_callbacks[j].src_addr()); 646 EXPECT_FALSE(receive_callbacks[j].src_addr());
647 EXPECT_TRUE(receive_callbacks[j].data().Equals( 647 EXPECT_TRUE(receive_callbacks[j].data().Equals(
648 CreateTestMessage(static_cast<uint8_t>(j), kDatagramSize))); 648 CreateTestMessage(static_cast<uint8_t>(j), kDatagramSize)));
649 } 649 }
650 } 650 }
651 } 651 }
652 652
653 } // namespace service 653 } // namespace service
654 } // namespace mojo 654 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/tcp_server_socket_impl.h ('k') | mojo/services/network/udp_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698