This source file includes following definitions.
- ChromeSendWebUIMessageHandler
- ChromeSendWebUIMessageHandler
- RegisterMessages
- GetMockMessageHandler
- SetUpOnMainThread
#include "chrome/test/data/webui/chrome_send_browsertest.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/values.h"
#include "content/public/browser/web_ui.h"
#include "testing/gmock/include/gmock/gmock.h"
using content::WebUIMessageHandler;
ChromeSendWebUITest::ChromeSendWebUITest() {}
ChromeSendWebUITest::~ChromeSendWebUITest() {}
ChromeSendWebUITest::ChromeSendWebUIMessageHandler::
ChromeSendWebUIMessageHandler() {}
ChromeSendWebUITest::ChromeSendWebUIMessageHandler::
~ChromeSendWebUIMessageHandler() {}
void ChromeSendWebUITest::ChromeSendWebUIMessageHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback(
"checkSend",
base::Bind(&ChromeSendWebUIMessageHandler::HandleCheckSend,
base::Unretained(this)));
}
WebUIMessageHandler* ChromeSendWebUITest::GetMockMessageHandler() {
return &message_handler_;
}
ChromeSendPassthroughWebUITest::ChromeSendPassthroughWebUITest() {}
ChromeSendPassthroughWebUITest::~ChromeSendPassthroughWebUITest() {}
void ChromeSendPassthroughWebUITest::SetUpOnMainThread() {
ChromeSendWebUITest::SetUpOnMainThread();
EXPECT_CALL(message_handler_, HandleCheckSend(::testing::_));
}