16 #ifndef MOCK_FIELD_TIMESTAMPF_H
17 #define MOCK_FIELD_TIMESTAMPF_H
19 #include "fake_table.h"
28 EXPECT_FALSE(table == NULL) <<
"Out of memory";
30 memset(buffer, 0, PACK_LENGTH);
35 uchar buffer[PACK_LENGTH];
36 bool store_timestamp_internal_called;
43 static_cast<uint8>(scale)),
45 store_timestamp_internal_called(
false)
55 EXPECT_EQ(0, warnings);
60 void make_writable() { bitmap_set_bit(table->write_set, field_index); }
62 void store_timestamp_internal(
const timeval *tm)
64 store_timestamp_internal_called=
true;
71 #endif // MOCK_FIELD_TIMESTAMPF_H