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

Side by Side Diff: chrome_frame/test/url_request_test.cc

Issue 10836116: Purge ImplementsThreadSafeReferenceCounting() from the codebase now that Task is dead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « chrome_frame/test/ie_event_sink.h ('k') | chrome_frame/urlmon_url_request_private.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/win/scoped_com_initializer.h" 10 #include "base/win/scoped_com_initializer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 MOCK_METHOD8(OnResponseStarted, void(int request_id, const char* mime_type, 42 MOCK_METHOD8(OnResponseStarted, void(int request_id, const char* mime_type,
43 const char* headers, int size, base::Time last_modified, 43 const char* headers, int size, base::Time last_modified,
44 const std::string& redirect_url, int redirect_status, 44 const std::string& redirect_url, int redirect_status,
45 const net::HostPortPair& socket_address)); 45 const net::HostPortPair& socket_address));
46 MOCK_METHOD2(OnReadComplete, void(int request_id, const std::string& data)); 46 MOCK_METHOD2(OnReadComplete, void(int request_id, const std::string& data));
47 MOCK_METHOD2(OnResponseEnd, void(int request_id, 47 MOCK_METHOD2(OnResponseEnd, void(int request_id,
48 const net::URLRequestStatus& status)); 48 const net::URLRequestStatus& status));
49 MOCK_METHOD4(OnCookiesRetrieved, void(bool success, const GURL& url, 49 MOCK_METHOD4(OnCookiesRetrieved, void(bool success, const GURL& url,
50 const std::string& cookie, int cookie_id)); 50 const std::string& cookie, int cookie_id));
51 51
52 static bool ImplementsThreadSafeReferenceCounting() {
53 return false;
54 }
55
56 void PostponeReadRequest(chrome_frame_test::TimedMsgLoop* loop, 52 void PostponeReadRequest(chrome_frame_test::TimedMsgLoop* loop,
57 UrlmonUrlRequest* request, int bytes_to_read) { 53 UrlmonUrlRequest* request, int bytes_to_read) {
58 loop->PostTask(FROM_HERE, 54 loop->PostTask(FROM_HERE,
59 base::Bind(&MockUrlDelegate::RequestRead, 55 base::Bind(&MockUrlDelegate::RequestRead,
60 base::Unretained(this), request, bytes_to_read)); 56 base::Unretained(this), request, bytes_to_read));
61 } 57 }
62 58
63 private: 59 private:
64 void RequestRead(UrlmonUrlRequest* request, int bytes_to_read) { 60 void RequestRead(UrlmonUrlRequest* request, int bytes_to_read) {
65 request->Read(bytes_to_read); 61 request->Read(bytes_to_read);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 EXPECT_CALL(mock, OnReadComplete(1, testing::_)) 312 EXPECT_CALL(mock, OnReadComplete(1, testing::_))
317 .Times(0); 313 .Times(0);
318 314
319 EXPECT_CALL(mock, OnResponseEnd(1, testing::_)) 315 EXPECT_CALL(mock, OnResponseEnd(1, testing::_))
320 .Times(0); 316 .Times(0);
321 317
322 mgr->StartUrlRequest(1, r1); 318 mgr->StartUrlRequest(1, r1);
323 loop.RunFor(kChromeFrameLongNavigationTimeout); 319 loop.RunFor(kChromeFrameLongNavigationTimeout);
324 mgr.reset(); 320 mgr.reset();
325 } 321 }
OLDNEW
« no previous file with comments | « chrome_frame/test/ie_event_sink.h ('k') | chrome_frame/urlmon_url_request_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698