OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/chrome_plugin_service_filter.h" | 10 #include "chrome/browser/chrome_plugin_service_filter.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 EXPECT_EQ(want_loaded, is_loaded); | 159 EXPECT_EQ(want_loaded, is_loaded); |
160 } | 160 } |
161 | 161 |
162 void SetupRequest(net::URLRequest* request) { | 162 void SetupRequest(net::URLRequest* request) { |
163 content::ResourceContext* context = | 163 content::ResourceContext* context = |
164 content::MockResourceContext::GetInstance(); | 164 content::MockResourceContext::GetInstance(); |
165 ResourceDispatcherHostRequestInfo* info = | 165 ResourceDispatcherHostRequestInfo* info = |
166 new ResourceDispatcherHostRequestInfo( | 166 new ResourceDispatcherHostRequestInfo( |
167 handler_, | 167 handler_, |
168 ChildProcessInfo::RENDER_PROCESS, | 168 content::PROCESS_TYPE_RENDERER, |
169 -1, // child_id | 169 -1, // child_id |
170 MSG_ROUTING_NONE, | 170 MSG_ROUTING_NONE, |
171 0, // origin_pid | 171 0, // origin_pid |
172 request->identifier(), | 172 request->identifier(), |
173 false, // is_main_frame | 173 false, // is_main_frame |
174 -1, // frame_id | 174 -1, // frame_id |
175 false, // parent_is_main_frame | 175 false, // parent_is_main_frame |
176 -1, // parent_frame_id | 176 -1, // parent_frame_id |
177 ResourceType::MAIN_FRAME, | 177 ResourceType::MAIN_FRAME, |
178 content::PAGE_TRANSITION_LINK, | 178 content::PAGE_TRANSITION_LINK, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 SetupRequest(&request); | 288 SetupRequest(&request); |
289 request.Start(); | 289 request.Start(); |
290 MessageLoop::current()->Run(); | 290 MessageLoop::current()->Run(); |
291 EXPECT_EQ(0, test_delegate_.received_redirect_count()); | 291 EXPECT_EQ(0, test_delegate_.received_redirect_count()); |
292 EXPECT_EQ(GURL(kPdfBlob), request.url()); | 292 EXPECT_EQ(GURL(kPdfBlob), request.url()); |
293 } | 293 } |
294 | 294 |
295 } // namespace | 295 } // namespace |
296 | 296 |
297 } // namespace chromeos | 297 } // namespace chromeos |
OLD | NEW |