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

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

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | mojo/services/network/web_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/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/common/message_pump_mojo.h" 10 #include "mojo/message_pump/message_pump_mojo.h"
11 #include "mojo/services/network/network_context.h" 11 #include "mojo/services/network/network_context.h"
12 #include "mojo/services/network/url_loader_impl.h" 12 #include "mojo/services/network/url_loader_impl.h"
13 #include "net/url_request/url_request_job.h" 13 #include "net/url_request/url_request_job.h"
14 #include "net/url_request/url_request_job_factory_impl.h" 14 #include "net/url_request/url_request_job_factory_impl.h"
15 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/mojo/src/mojo/public/cpp/application/application_test_base .h" 17 #include "third_party/mojo/src/mojo/public/cpp/application/application_test_base .h"
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" 18 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
19 19
20 namespace mojo { 20 namespace mojo {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 EXPECT_TRUE(IsUrlLoaderValid()); 263 EXPECT_TRUE(IsUrlLoaderValid());
264 264
265 g_current_job->NotifyReadComplete(-1); 265 g_current_job->NotifyReadComplete(-1);
266 base::RunLoop().RunUntilIdle(); 266 base::RunLoop().RunUntilIdle();
267 267
268 EXPECT_FALSE(IsUrlLoaderValid()); 268 EXPECT_FALSE(IsUrlLoaderValid());
269 } 269 }
270 270
271 } // namespace mojo 271 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | mojo/services/network/web_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698