| 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 #ifndef MockThreadableLoader_h | |
| 6 #define MockThreadableLoader_h | |
| 7 | |
| 8 #include "core/loader/ThreadableLoader.h" | |
| 9 #include "testing/gmock/include/gmock/gmock.h" | |
| 10 #include "wtf/PtrUtil.h" | |
| 11 #include <memory> | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class MockThreadableLoader : public ThreadableLoader { | |
| 16 public: | |
| 17 static MockThreadableLoader* create() { | |
| 18 return new testing::StrictMock<MockThreadableLoader>; | |
| 19 } | |
| 20 | |
| 21 MOCK_METHOD1(start, void(const ResourceRequest&)); | |
| 22 MOCK_METHOD1(overrideTimeout, void(unsigned long)); | |
| 23 MOCK_METHOD0(cancel, void()); | |
| 24 | |
| 25 protected: | |
| 26 MockThreadableLoader() = default; | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // MockThreadableLoader_h | |
| OLD | NEW |