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

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

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « chrome/common/resource_bundle_win.cc ('k') | chrome/common/stl_util-inl.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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "chrome/common/filter_policy.h" 10 #include "chrome/common/filter_policy.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // received data message with the test contents 106 // received data message with the test contents
107 base::SharedMemory shared_mem; 107 base::SharedMemory shared_mem;
108 EXPECT_TRUE(shared_mem.Create(std::wstring(), 108 EXPECT_TRUE(shared_mem.Create(std::wstring(),
109 false, false, test_page_contents_len)); 109 false, false, test_page_contents_len));
110 EXPECT_TRUE(shared_mem.Map(test_page_contents_len)); 110 EXPECT_TRUE(shared_mem.Map(test_page_contents_len));
111 char* put_data_here = static_cast<char*>(shared_mem.memory()); 111 char* put_data_here = static_cast<char*>(shared_mem.memory());
112 memcpy(put_data_here, test_page_contents, test_page_contents_len); 112 memcpy(put_data_here, test_page_contents, test_page_contents_len);
113 base::SharedMemoryHandle dup_handle; 113 base::SharedMemoryHandle dup_handle;
114 EXPECT_TRUE(shared_mem.GiveToProcess( 114 EXPECT_TRUE(shared_mem.GiveToProcess(
115 base::Process::Current().handle(), &dup_handle)); 115 base::Process::Current().handle(), &dup_handle));
116 dispatcher_->OnReceivedData(request_id, dup_handle, test_page_contents_len ); 116 dispatcher_->OnReceivedData(request_id, dup_handle,
117 test_page_contents_len);
117 118
118 message_queue_.erase(message_queue_.begin()); 119 message_queue_.erase(message_queue_.begin());
119 120
120 // read the ack message. 121 // read the ack message.
121 iter = NULL; 122 iter = NULL;
122 int request_ack = -1; 123 int request_ack = -1;
123 ASSERT_TRUE(IPC::ReadParam(&message_queue_[0], &iter, &request_ack)); 124 ASSERT_TRUE(IPC::ReadParam(&message_queue_[0], &iter, &request_ack));
124 125
125 ASSERT_EQ(request_ack, request_id); 126 ASSERT_EQ(request_ack, request_id);
126 127
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/common/resource_bundle_win.cc ('k') | chrome/common/stl_util-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698