| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "chrome/common/filter_policy.h" | 10 #include "chrome/common/filter_policy.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void OnReceivedResponse( | 37 virtual void OnReceivedResponse( |
| 38 const ResourceLoaderBridge::ResponseInfo& info, | 38 const ResourceLoaderBridge::ResponseInfo& info, |
| 39 bool content_filtered) { | 39 bool content_filtered) { |
| 40 } | 40 } |
| 41 | 41 |
| 42 virtual void OnReceivedData(const char* data, int len) { | 42 virtual void OnReceivedData(const char* data, int len) { |
| 43 EXPECT_FALSE(complete_); | 43 EXPECT_FALSE(complete_); |
| 44 data_.append(data, len); | 44 data_.append(data, len); |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual void OnCompletedRequest(const URLRequestStatus& status) { | 47 virtual void OnCompletedRequest(const URLRequestStatus& status, |
| 48 const std::string& security_info) { |
| 48 EXPECT_FALSE(complete_); | 49 EXPECT_FALSE(complete_); |
| 49 complete_ = true; | 50 complete_ = true; |
| 50 } | 51 } |
| 51 | 52 |
| 52 virtual std::string GetURLForDebugging() { | 53 virtual std::string GetURLForDebugging() { |
| 53 return std::string(); | 54 return std::string(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 const std::string& data() const { | 57 const std::string& data() const { |
| 57 return data_; | 58 return data_; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 180 } |
| 180 | 181 |
| 181 TEST_F(ResourceDispatcherTest, Cookies) { | 182 TEST_F(ResourceDispatcherTest, Cookies) { |
| 182 // FIXME | 183 // FIXME |
| 183 } | 184 } |
| 184 | 185 |
| 185 TEST_F(ResourceDispatcherTest, SerializedPostData) { | 186 TEST_F(ResourceDispatcherTest, SerializedPostData) { |
| 186 // FIXME | 187 // FIXME |
| 187 } | 188 } |
| 188 | 189 |
| OLD | NEW |