OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 | 737 |
738 // Do not release handles in it yet; the accumulator owns them now. | 738 // Do not release handles in it yet; the accumulator owns them now. |
739 delete msg; | 739 delete msg; |
740 return true; | 740 return true; |
741 } | 741 } |
742 | 742 |
743 protected: | 743 protected: |
744 friend class TestURLRequestJobFactory; | 744 friend class TestURLRequestJobFactory; |
745 | 745 |
746 // testing::Test | 746 // testing::Test |
747 virtual void SetUp() override { | 747 void SetUp() override { |
748 ChildProcessSecurityPolicyImpl::GetInstance()->Add(0); | 748 ChildProcessSecurityPolicyImpl::GetInstance()->Add(0); |
749 HandleScheme("test"); | 749 HandleScheme("test"); |
750 } | 750 } |
751 | 751 |
752 virtual void TearDown() { | 752 void TearDown() override { |
753 EXPECT_TRUE(URLRequestTestDelayedStartJob::DelayedStartQueueEmpty()); | 753 EXPECT_TRUE(URLRequestTestDelayedStartJob::DelayedStartQueueEmpty()); |
754 URLRequestTestDelayedStartJob::ClearQueue(); | 754 URLRequestTestDelayedStartJob::ClearQueue(); |
755 | 755 |
756 for (std::set<int>::iterator it = child_ids_.begin(); | 756 for (std::set<int>::iterator it = child_ids_.begin(); |
757 it != child_ids_.end(); ++it) { | 757 it != child_ids_.end(); ++it) { |
758 host_.CancelRequestsForProcess(*it); | 758 host_.CancelRequestsForProcess(*it); |
759 } | 759 } |
760 | 760 |
761 host_.Shutdown(); | 761 host_.Shutdown(); |
762 | 762 |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2994 } else { | 2994 } else { |
2995 return new net::URLRequestTestJob( | 2995 return new net::URLRequestTestJob( |
2996 request, network_delegate, | 2996 request, network_delegate, |
2997 test_fixture_->response_headers_, test_fixture_->response_data_, | 2997 test_fixture_->response_headers_, test_fixture_->response_data_, |
2998 false); | 2998 false); |
2999 } | 2999 } |
3000 } | 3000 } |
3001 } | 3001 } |
3002 | 3002 |
3003 } // namespace content | 3003 } // namespace content |
OLD | NEW |