OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/loader/ThreadableLoader.h" |
| 6 #include "testing/gmock/include/gmock/gmock.h" |
| 7 #include "wtf/PassRefPtr.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 class MockThreadableLoader : public ThreadableLoader { |
| 12 public: |
| 13 static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testi
ng::StrictMock<MockThreadableLoader>); } |
| 14 |
| 15 MOCK_METHOD1(start, void(const ResourceRequest&)); |
| 16 MOCK_METHOD1(overrideTimeout, void(unsigned long)); |
| 17 MOCK_METHOD0(cancel, void()); |
| 18 |
| 19 protected: |
| 20 MockThreadableLoader() = default; |
| 21 }; |
| 22 |
| 23 } // namespace blink |
OLD | NEW |