#ifndef CHROME_TEST_DATA_WEBUI_CHROME_SEND_BROWSERTEST_H_
#define CHROME_TEST_DATA_WEBUI_CHROME_SEND_BROWSERTEST_H_
#include "chrome/test/base/web_ui_browsertest.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
class ChromeSendWebUITest : public WebUIBrowserTest {
public:
ChromeSendWebUITest();
virtual ~ChromeSendWebUITest();
class ChromeSendWebUIMessageHandler : public content::WebUIMessageHandler {
public:
ChromeSendWebUIMessageHandler();
~ChromeSendWebUIMessageHandler();
MOCK_METHOD1(HandleCheckSend, void(const base::ListValue*));
private:
virtual void RegisterMessages() OVERRIDE;
};
protected:
::testing::StrictMock<ChromeSendWebUIMessageHandler> message_handler_;
private:
virtual content::WebUIMessageHandler* GetMockMessageHandler() OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ChromeSendWebUITest);
};
class ChromeSendPassthroughWebUITest : public ChromeSendWebUITest {
public:
ChromeSendPassthroughWebUITest();
virtual ~ChromeSendPassthroughWebUITest();
private:
virtual void SetUpOnMainThread() OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ChromeSendPassthroughWebUITest);
};
#endif