reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -30,7 +30,7 @@ class ObBaseStorage;
|
||||
} // namespace storage
|
||||
namespace unittest {
|
||||
class MockPartition : public storage::MockObIPartitionGroup {
|
||||
public:
|
||||
public:
|
||||
MockPartition() : tenant_id_(1001)
|
||||
{
|
||||
partition_key_.init(1, 1, 1);
|
||||
@ -38,7 +38,7 @@ class MockPartition : public storage::MockObIPartitionGroup {
|
||||
virtual ~MockPartition()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
void reset()
|
||||
{
|
||||
replay_status_.reset();
|
||||
@ -308,20 +308,20 @@ class MockPartition : public storage::MockObIPartitionGroup {
|
||||
return common::OB_SUCCESS;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
uint64_t tenant_id_;
|
||||
ObReplayStatus replay_status_;
|
||||
common::ObPartitionKey partition_key_;
|
||||
};
|
||||
|
||||
class MockPartitionService : public storage::MockObIPartitionService {
|
||||
public:
|
||||
public:
|
||||
MockPartitionService()
|
||||
{}
|
||||
virtual ~MockPartitionService()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
void reset()
|
||||
{
|
||||
mock_partition_.reset();
|
||||
@ -793,7 +793,7 @@ class MockPartitionService : public storage::MockObIPartitionService {
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
MockPartition mock_partition_;
|
||||
};
|
||||
|
||||
|
||||
@ -28,19 +28,19 @@ using namespace transaction;
|
||||
using namespace storage;
|
||||
namespace unittest {
|
||||
class ObLogReplayEngineTest : public testing::Test {
|
||||
public:
|
||||
public:
|
||||
void init();
|
||||
void destroy();
|
||||
char* get_log_buf(storage::ObStorageLogType log_type, int64_t trans_id, int64_t& buf_len);
|
||||
char* get_log_buf(storage::ObStorageLogType log_type, int64_t& buf_len);
|
||||
char* get_invalid_log_buf(storage::ObStorageLogType log_type, int64_t& buf_len);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
replayengine::ObLogReplayEngine* log_replay_engine_;
|
||||
common::ObPartitionKey partition_key_;
|
||||
common::ObPartitionKey ignored_partition_key_;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
char buffer[1024];
|
||||
MockPartitionService mock_partition_service_;
|
||||
MockObTransService mock_trans_replay_service_;
|
||||
|
||||
Reference in New Issue
Block a user