| 67 | // mock tablet manager |
| 68 | |
| 69 | bool AddTablet(const std::string& table_name, const std::string& table_path, |
| 70 | const std::string& key_start, const std::string& key_end, io::TabletIO** tablet_io, |
| 71 | StatusCode* status) { |
| 72 | m_tablet_io.AddRef(); |
| 73 | *tablet_io = &m_tablet_io; |
| 74 | *status = m_ret_status; |
| 75 | return m_ret_tm_add; |
| 76 | } |
| 77 | bool RemoveTablet(const std::string& table_name, const std::string& key_start, |
| 78 | const std::string& key_end, StatusCode* status) { |
| 79 | return m_ret_tm_remove; |