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

Side by Side Diff: chrome/browser/renderer_host/resource_queue_unittest.cc

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/renderer_host/global_request_id.h" 8 #include "chrome/browser/renderer_host/global_request_id.h"
9 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 9 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
10 #include "chrome/browser/renderer_host/resource_handler.h" 10 #include "chrome/browser/renderer_host/resource_handler.h"
11 #include "chrome/browser/renderer_host/resource_queue.h" 11 #include "chrome/browser/renderer_host/resource_queue.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 NOTREACHED(); 52 NOTREACHED();
53 return true; 53 return true;
54 } 54 }
55 55
56 virtual bool OnReadCompleted(int request_id, int* bytes_read) { 56 virtual bool OnReadCompleted(int request_id, int* bytes_read) {
57 NOTREACHED(); 57 NOTREACHED();
58 return true; 58 return true;
59 } 59 }
60 60
61 virtual bool OnResponseCompleted(int request_id, 61 virtual bool OnResponseCompleted(int request_id,
62 const URLRequestStatus& status, 62 const net::URLRequestStatus& status,
63 const std::string& security_info) { 63 const std::string& security_info) {
64 NOTREACHED(); 64 NOTREACHED();
65 return true; 65 return true;
66 } 66 }
67 67
68 virtual void OnRequestClosed() { 68 virtual void OnRequestClosed() {
69 } 69 }
70 70
71 private: 71 private:
72 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); 72 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 MessageLoop::current()->RunAllPending(); 281 MessageLoop::current()->RunAllPending();
282 EXPECT_EQ(0, response_started_count_); 282 EXPECT_EQ(0, response_started_count_);
283 283
284 queue.Shutdown(); 284 queue.Shutdown();
285 285
286 MessageLoop::current()->RunAllPending(); 286 MessageLoop::current()->RunAllPending();
287 EXPECT_EQ(0, response_started_count_); 287 EXPECT_EQ(0, response_started_count_);
288 } 288 }
289 289
290 } // namespace 290 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_queue.cc ('k') | chrome/browser/renderer_host/safe_browsing_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698