| Index: third_party/WebKit/Source/core/loader/MockThreadableLoader.h
|
| diff --git a/third_party/WebKit/Source/core/loader/MockThreadableLoader.h b/third_party/WebKit/Source/core/loader/MockThreadableLoader.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e4171704753f0ae26006a3fc9d1e2f4359f5e23f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/loader/MockThreadableLoader.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MockThreadableLoader_h
|
| +#define MockThreadableLoader_h
|
| +
|
| +#include "core/loader/ThreadableLoader.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +#include "wtf/PassRefPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class MockThreadableLoader : public ThreadableLoader {
|
| +public:
|
| + static PassRefPtr<MockThreadableLoader> create() { return adoptRef(new testing::StrictMock<MockThreadableLoader>); }
|
| +
|
| + MOCK_METHOD1(overrideTimeout, void(unsigned long));
|
| + MOCK_METHOD0(cancel, void());
|
| +
|
| +protected:
|
| + MockThreadableLoader() = default;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // MockThreadableLoader_h
|
|
|