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

Side by Side Diff: content/browser/loader/resource_scheduler_unittest.cc

Issue 384413004: Remove default key slot from KeygenHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing android_webview. Created 6 years, 5 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) 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 "content/browser/loader/resource_scheduler.h" 5 #include "content/browser/loader/resource_scheduler.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "content/browser/browser_thread_impl.h" 10 #include "content/browser/browser_thread_impl.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void Resume() OVERRIDE { 81 virtual void Resume() OVERRIDE {
82 TestRequest::Resume(); 82 TestRequest::Resume();
83 request_to_cancel_.reset(); 83 request_to_cancel_.reset();
84 } 84 }
85 85
86 scoped_ptr<TestRequest> request_to_cancel_; 86 scoped_ptr<TestRequest> request_to_cancel_;
87 }; 87 };
88 88
89 class FakeResourceContext : public ResourceContext { 89 class FakeResourceContext : public ResourceContext {
90 private: 90 private:
91 virtual void CreateKeygenHandler(
92 uint32 key_size_in_bits,
93 const std::string& challenge_string,
94 const GURL& url,
95 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback)
96 OVERRIDE {}
Ryan Sleevi 2014/07/15 21:22:33 Do you not need to call the callback with NULL? Wh
91 virtual net::HostResolver* GetHostResolver() OVERRIDE { return NULL; } 97 virtual net::HostResolver* GetHostResolver() OVERRIDE { return NULL; }
92 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { return NULL; } 98 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { return NULL; }
93 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { return false; } 99 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { return false; }
94 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { return false; } 100 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { return false; }
95 }; 101 };
96 102
97 class FakeResourceMessageFilter : public ResourceMessageFilter { 103 class FakeResourceMessageFilter : public ResourceMessageFilter {
98 public: 104 public:
99 FakeResourceMessageFilter(int child_id) 105 FakeResourceMessageFilter(int child_id)
100 : ResourceMessageFilter( 106 : ResourceMessageFilter(
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 http_server_properties_.SetSupportsSpdy( 533 http_server_properties_.SetSupportsSpdy(
528 net::HostPortPair("spdyhost2", 8080), true); 534 net::HostPortPair("spdyhost2", 8080), true);
529 ChangeRequestPriority(low2_spdy.get(), net::LOWEST); 535 ChangeRequestPriority(low2_spdy.get(), net::LOWEST);
530 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST)); 536 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST));
531 EXPECT_TRUE(low2->started()); 537 EXPECT_TRUE(low2->started());
532 } 538 }
533 539
534 } // unnamed namespace 540 } // unnamed namespace
535 541
536 } // namespace content 542 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698