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

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

Issue 668483002: Change mojo URLs from mojo://mojo_foo to mojo://foo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
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/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "mojo/public/cpp/bindings/callback.h" 8 #include "mojo/public/cpp/bindings/callback.h"
9 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 9 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
10 #include "mojo/services/public/interfaces/network/udp_socket.mojom.h" 10 #include "mojo/services/public/interfaces/network/udp_socket.mojom.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 class UDPSocketTest : public testing::Test { 206 class UDPSocketTest : public testing::Test {
207 public: 207 public:
208 UDPSocketTest() {} 208 UDPSocketTest() {}
209 virtual ~UDPSocketTest() {} 209 virtual ~UDPSocketTest() {}
210 210
211 virtual void SetUp() override { 211 virtual void SetUp() override {
212 test_helper_.Init(); 212 test_helper_.Init();
213 213
214 test_helper_.application_manager()->ConnectToService( 214 test_helper_.application_manager()->ConnectToService(
215 GURL("mojo:mojo_network_service"), &network_service_); 215 GURL("mojo:network_service"), &network_service_);
216 216
217 network_service_->CreateUDPSocket(GetProxy(&udp_socket_)); 217 network_service_->CreateUDPSocket(GetProxy(&udp_socket_));
218 udp_socket_.set_client(&udp_socket_client_); 218 udp_socket_.set_client(&udp_socket_client_);
219 } 219 }
220 220
221 protected: 221 protected:
222 struct ReceiveResult { 222 struct ReceiveResult {
223 NetworkErrorPtr result; 223 NetworkErrorPtr result;
224 NetAddressPtr addr; 224 NetAddressPtr addr;
225 Array<uint8_t> data; 225 Array<uint8_t> data;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 EXPECT_EQ(static_cast<int>(kDatagramSize), result->result->code); 378 EXPECT_EQ(static_cast<int>(kDatagramSize), result->result->code);
379 EXPECT_TRUE(AreEqualArrays( 379 EXPECT_TRUE(AreEqualArrays(
380 CreateTestMessage(static_cast<uint8_t>(i), kDatagramSize), 380 CreateTestMessage(static_cast<uint8_t>(i), kDatagramSize),
381 result->data)); 381 result->data));
382 } 382 }
383 } 383 }
384 384
385 } // namespace service 385 } // namespace service
386 } // namespace mojo 386 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698