| 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/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/common/filter_policy.h" | 10 #include "chrome/common/filter_policy.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 ASSERT_TRUE(ViewHostMsg_DataReceived_ACK::Read( | 127 ASSERT_TRUE(ViewHostMsg_DataReceived_ACK::Read( |
| 128 &message_queue_[0], &request_ack)); | 128 &message_queue_[0], &request_ack)); |
| 129 | 129 |
| 130 ASSERT_EQ(request_ack.a, request_id); | 130 ASSERT_EQ(request_ack.a, request_id); |
| 131 | 131 |
| 132 message_queue_.erase(message_queue_.begin()); | 132 message_queue_.erase(message_queue_.begin()); |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 | 135 |
| 136 protected: | 136 protected: |
| 137 static ResourceDispatcher* GetResourceDispatcher(WebFrame* unused) { | |
| 138 return dispatcher_.get(); | |
| 139 } | |
| 140 | |
| 141 // testing::Test | 137 // testing::Test |
| 142 virtual void SetUp() { | 138 virtual void SetUp() { |
| 143 dispatcher_.reset(new ResourceDispatcher(this)); | 139 dispatcher_.reset(new ResourceDispatcher(this)); |
| 144 } | 140 } |
| 145 virtual void TearDown() { | 141 virtual void TearDown() { |
| 146 dispatcher_.reset(); | 142 dispatcher_.reset(); |
| 147 } | 143 } |
| 148 | 144 |
| 149 std::vector<IPC::Message> message_queue_; | 145 std::vector<IPC::Message> message_queue_; |
| 150 static scoped_ptr<ResourceDispatcher> dispatcher_; | 146 static scoped_ptr<ResourceDispatcher> dispatcher_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // FIXME | 181 // FIXME |
| 186 } | 182 } |
| 187 | 183 |
| 188 TEST_F(ResourceDispatcherTest, Cookies) { | 184 TEST_F(ResourceDispatcherTest, Cookies) { |
| 189 // FIXME | 185 // FIXME |
| 190 } | 186 } |
| 191 | 187 |
| 192 TEST_F(ResourceDispatcherTest, SerializedPostData) { | 188 TEST_F(ResourceDispatcherTest, SerializedPostData) { |
| 193 // FIXME | 189 // FIXME |
| 194 } | 190 } |
| OLD | NEW |