Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / webui / chrome_send_browsertest.cc
blobc3bb91a23630e5e3f9427d0cff152aeb75dde009
1 // Copyright (c) 2011 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.
5 #include "chrome/test/data/webui/chrome_send_browsertest.h"
7 #include "base/bind.h"
8 #include "base/bind_helpers.h"
9 #include "base/values.h"
10 #include "content/public/browser/web_ui.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 using content::WebUIMessageHandler;
15 ChromeSendWebUITest::ChromeSendWebUITest() {}
17 ChromeSendWebUITest::~ChromeSendWebUITest() {}
19 ChromeSendWebUITest::ChromeSendWebUIMessageHandler::
20 ChromeSendWebUIMessageHandler() {}
22 ChromeSendWebUITest::ChromeSendWebUIMessageHandler::
23 ~ChromeSendWebUIMessageHandler() {}
25 void ChromeSendWebUITest::ChromeSendWebUIMessageHandler::RegisterMessages() {
26 web_ui()->RegisterMessageCallback(
27 "checkSend",
28 base::Bind(&ChromeSendWebUIMessageHandler::HandleCheckSend,
29 base::Unretained(this)));
32 WebUIMessageHandler* ChromeSendWebUITest::GetMockMessageHandler() {
33 return &message_handler_;
36 ChromeSendPassthroughWebUITest::ChromeSendPassthroughWebUITest() {}
38 ChromeSendPassthroughWebUITest::~ChromeSendPassthroughWebUITest() {}
40 void ChromeSendPassthroughWebUITest::SetUpOnMainThread() {
41 ChromeSendWebUITest::SetUpOnMainThread();
42 EXPECT_CALL(message_handler_, HandleCheckSend(::testing::_));