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

Side by Side Diff: content/child/web_url_loader_impl_unittest.cc

Issue 686523002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 bool did_finish_; 278 bool did_finish_;
279 blink::WebURLError error_; 279 blink::WebURLError error_;
280 blink::WebURLResponse response_; 280 blink::WebURLResponse response_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(TestWebURLLoaderClient); 282 DISALLOW_COPY_AND_ASSIGN(TestWebURLLoaderClient);
283 }; 283 };
284 284
285 class WebURLLoaderImplTest : public testing::Test { 285 class WebURLLoaderImplTest : public testing::Test {
286 public: 286 public:
287 explicit WebURLLoaderImplTest() : client_(&dispatcher_) {} 287 explicit WebURLLoaderImplTest() : client_(&dispatcher_) {}
288 virtual ~WebURLLoaderImplTest() {} 288 ~WebURLLoaderImplTest() override {}
289 289
290 void DoStartAsyncRequest() { 290 void DoStartAsyncRequest() {
291 blink::WebURLRequest request; 291 blink::WebURLRequest request;
292 request.initialize(); 292 request.initialize();
293 request.setURL(GURL(kTestURL)); 293 request.setURL(GURL(kTestURL));
294 client()->loader()->loadAsynchronously(request, client()); 294 client()->loader()->loadAsynchronously(request, client());
295 ASSERT_TRUE(bridge()); 295 ASSERT_TRUE(bridge());
296 ASSERT_TRUE(peer()); 296 ASSERT_TRUE(peer());
297 } 297 }
298 298
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 EXPECT_EQ(kMimeType, client()->response().mimeType().latin1()); 698 EXPECT_EQ(kMimeType, client()->response().mimeType().latin1());
699 699
700 DoReceiveData(); 700 DoReceiveData();
701 DoCompleteRequest(); 701 DoCompleteRequest();
702 EXPECT_FALSE(bridge()->canceled()); 702 EXPECT_FALSE(bridge()->canceled());
703 EXPECT_EQ(kTestData, client()->received_data()); 703 EXPECT_EQ(kTestData, client()->received_data());
704 } 704 }
705 705
706 } // namespace 706 } // namespace
707 } // namespace content 707 } // namespace content
OLDNEW
« no previous file with comments | « content/child/site_isolation_policy_browsertest.cc ('k') | content/common/font_config_ipc_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698