#ifndef CONTENT_TEST_MOCK_WEBURLLOADER_H_
#define CONTENT_TEST_MOCK_WEBURLLOADER_H_
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/WebKit/public/platform/WebURLLoader.h"
namespace content {
class MockWebURLLoader : public blink::WebURLLoader {
public:
MockWebURLLoader();
virtual ~MockWebURLLoader();
MOCK_METHOD4(loadSynchronously, void(const blink::WebURLRequest& request,
blink::WebURLResponse& response,
blink::WebURLError& error,
blink::WebData& data));
MOCK_METHOD2(loadAsynchronously, void(const blink::WebURLRequest& request,
blink::WebURLLoaderClient* client));
MOCK_METHOD0(cancel, void());
MOCK_METHOD1(setDefersLoading, void(bool value));
private:
DISALLOW_COPY_AND_ASSIGN(MockWebURLLoader);
};
}
#endif