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

Side by Side Diff: mojo/services/network/url_loader_impl_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
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/bind.h" 5 #include "base/bind.h"
6 #include "base/lazy_instance.h" 6 #include "base/lazy_instance.h"
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "mojo/application/public/cpp/application_test_base.h" 10 #include "mojo/application/public/cpp/application_test_base.h"
11 #include "mojo/message_pump/message_pump_mojo.h" 11 #include "mojo/message_pump/message_pump_mojo.h"
12 #include "mojo/public/cpp/bindings/interface_request.h"
12 #include "mojo/services/network/network_context.h" 13 #include "mojo/services/network/network_context.h"
13 #include "mojo/services/network/url_loader_impl.h" 14 #include "mojo/services/network/url_loader_impl.h"
14 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
15 #include "net/url_request/url_request_job.h" 16 #include "net/url_request/url_request_job.h"
16 #include "net/url_request/url_request_job_factory_impl.h" 17 #include "net/url_request/url_request_job_factory_impl.h"
17 #include "net/url_request/url_request_status.h" 18 #include "net/url_request/url_request_status.h"
18 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
21 21
22 namespace mojo { 22 namespace mojo {
23 23
24 class TestURLRequestJob; 24 class TestURLRequestJob;
25 25
26 TestURLRequestJob* g_current_job = nullptr; 26 TestURLRequestJob* g_current_job = nullptr;
27 27
28 template <class A> 28 template <class A>
29 void PassA(A* destination, A value) { 29 void PassA(A* destination, A value) {
30 *destination = value.Pass(); 30 *destination = value.Pass();
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 EXPECT_TRUE(IsUrlLoaderValid()); 283 EXPECT_TRUE(IsUrlLoaderValid());
284 284
285 g_current_job->NotifyReadComplete(-1); 285 g_current_job->NotifyReadComplete(-1);
286 286
287 while (IsUrlLoaderValid()) 287 while (IsUrlLoaderValid())
288 base::RunLoop().RunUntilIdle(); 288 base::RunLoop().RunUntilIdle();
289 } 289 }
290 290
291 } // namespace mojo 291 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_impl.h ('k') | mojo/services/network/web_socket_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698