16 #include "handler-t.h"
17 #include "test_utils.h"
18 #include "fake_table.h"
19 #include "mock_field_datetime.h"
21 #include "sql_executor.h"
28 using ::testing::StrictMock;
30 class HandlerTest :
public ::testing::Test
33 virtual void SetUp() { initializer.SetUp(); }
34 virtual void TearDown() { initializer.TearDown(); }
36 THD *thd() {
return initializer.thd(); }
38 Server_initializer initializer;
49 TEST_F(HandlerTest, ReportErrorHandler)
54 StrictMock<Mock_HANDLER> mock_handler(hton,
table.get_share());
55 table.set_handler(&mock_handler);
61 EXPECT_CALL(mock_handler, print_error(HA_ERR_TABLE_DEF_CHANGED, 0)).Times(1);