| 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/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/process.h" | 9 #include "base/process.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 virtual void OnCompletedRequest(const net::URLRequestStatus& status, | 287 virtual void OnCompletedRequest(const net::URLRequestStatus& status, |
| 288 const std::string& security_info, | 288 const std::string& security_info, |
| 289 const base::Time& completion_time) { | 289 const base::Time& completion_time) { |
| 290 } | 290 } |
| 291 | 291 |
| 292 protected: | 292 protected: |
| 293 virtual void SetUp() { | 293 virtual void SetUp() { |
| 294 ResourceDispatcherTest::SetUp(); | 294 ResourceDispatcherTest::SetUp(); |
| 295 shared_handle_.Delete(kShmemSegmentName); | 295 shared_handle_.Delete(kShmemSegmentName); |
| 296 EXPECT_EQ(true, shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); | 296 EXPECT_TRUE(shared_handle_.CreateNamed(kShmemSegmentName, false, 100)); |
| 297 } | 297 } |
| 298 | 298 |
| 299 virtual void TearDown() { | 299 virtual void TearDown() { |
| 300 shared_handle_.Close(); | 300 shared_handle_.Close(); |
| 301 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); | 301 EXPECT_TRUE(shared_handle_.Delete(kShmemSegmentName)); |
| 302 ResourceDispatcherTest::TearDown(); | 302 ResourceDispatcherTest::TearDown(); |
| 303 } | 303 } |
| 304 | 304 |
| 305 private: | 305 private: |
| 306 void set_defer_loading(bool defer) { | 306 void set_defer_loading(bool defer) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 321 | 321 |
| 322 ResourceLoaderBridge* bridge = CreateBridge(); | 322 ResourceLoaderBridge* bridge = CreateBridge(); |
| 323 | 323 |
| 324 bridge->Start(this); | 324 bridge->Start(this); |
| 325 InitMessages(); | 325 InitMessages(); |
| 326 | 326 |
| 327 // Dispatch deferred messages. | 327 // Dispatch deferred messages. |
| 328 message_loop.RunAllPending(); | 328 message_loop.RunAllPending(); |
| 329 delete bridge; | 329 delete bridge; |
| 330 } | 330 } |
| OLD | NEW |