ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / content / test / test_navigation_url_loader.cc
blob2d1488787789f90d9125998b40cd2da367c4d954
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/test/test_navigation_url_loader.h"
7 #include "content/browser/loader/navigation_url_loader_delegate.h"
8 #include "content/public/browser/stream_handle.h"
10 namespace content {
12 TestNavigationURLLoader::TestNavigationURLLoader(
13 scoped_ptr<NavigationRequestInfo> request_info,
14 NavigationURLLoaderDelegate* delegate)
15 : request_info_(request_info.Pass()),
16 delegate_(delegate),
17 redirect_count_(0) {
20 void TestNavigationURLLoader::FollowRedirect() {
21 redirect_count_++;
24 void TestNavigationURLLoader::CallOnRequestRedirected(
25 const net::RedirectInfo& redirect_info,
26 const scoped_refptr<ResourceResponse>& response) {
27 delegate_->OnRequestRedirected(redirect_info, response);
30 void TestNavigationURLLoader::CallOnResponseStarted(
31 const scoped_refptr<ResourceResponse>& response,
32 scoped_ptr<StreamHandle> body) {
33 delegate_->OnResponseStarted(response, body.Pass());
36 TestNavigationURLLoader::~TestNavigationURLLoader() {}
38 } // namespace content