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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 297 |
298 virtual void OnCompletedRequest(const net::URLRequestStatus& status, | 298 virtual void OnCompletedRequest(const net::URLRequestStatus& status, |
299 const std::string& security_info, | 299 const std::string& security_info, |
300 const base::Time& completion_time) { | 300 const base::Time& completion_time) { |
301 } | 301 } |
302 | 302 |
303 protected: | 303 protected: |
304 virtual void SetUp() { | 304 virtual void SetUp() { |
305 ResourceDispatcherTest::SetUp(); | 305 ResourceDispatcherTest::SetUp(); |
306 shared_handle_.Delete(kShmemSegmentName); | 306 shared_handle_.Delete(kShmemSegmentName); |
307 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); | 307 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100, |
| 308 false)); |
308 } | 309 } |
309 | 310 |
310 virtual void TearDown() { | 311 virtual void TearDown() { |
311 shared_handle_.Close(); | 312 shared_handle_.Close(); |
312 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); | 313 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); |
313 ResourceDispatcherTest::TearDown(); | 314 ResourceDispatcherTest::TearDown(); |
314 } | 315 } |
315 | 316 |
316 private: | 317 private: |
317 void set_defer_loading(bool defer) { | 318 void set_defer_loading(bool defer) { |
(...skipping 14 matching lines...) Expand all Loading... |
332 | 333 |
333 ResourceLoaderBridge* bridge = CreateBridge(); | 334 ResourceLoaderBridge* bridge = CreateBridge(); |
334 | 335 |
335 bridge->Start(this); | 336 bridge->Start(this); |
336 InitMessages(); | 337 InitMessages(); |
337 | 338 |
338 // Dispatch deferred messages. | 339 // Dispatch deferred messages. |
339 message_loop.RunAllPending(); | 340 message_loop.RunAllPending(); |
340 delete bridge; | 341 delete bridge; |
341 } | 342 } |
OLD | NEW |