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

Side by Side Diff: chrome/common/resource_dispatcher_unittest.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/renderer/extensions/bindings_utils.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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/bindings_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698