Chromium Code Reviews| 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/PassRefPtr.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class MockThreadableLoader : public ThreadableLoader { | |
| 15 public: | |
| 16 static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testi ng::StrictMock<MockThreadableLoader>); } | |
| 17 | |
| 18 MOCK_METHOD1(start, void(const ResourceRequest&)); | |
|
hiroshige
2016/02/05 05:42:09
If we land this CL before https://codereview.chrom
tyoshino (SeeGerritForStatus)
2016/02/05 07:22:10
Oh, right. I forgot to make it consistent with ToT
| |
| 19 MOCK_METHOD1(overrideTimeout, void(unsigned long)); | |
| 20 MOCK_METHOD0(cancel, void()); | |
| 21 | |
| 22 protected: | |
| 23 MockThreadableLoader() = default; | |
| 24 }; | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // MockThreadableLoader_h | |
| OLD | NEW |