reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -18,7 +18,7 @@
using namespace oceanbase::common;
class TestObDynamicThreadPool : public ::testing::Test {
public:
public:
TestObDynamicThreadPool()
{}
virtual ~TestObDynamicThreadPool()
@ -34,17 +34,17 @@ class TestObDynamicThreadPool : public ::testing::Test {
static void TearDownTestCase()
{}
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestObDynamicThreadPool);
protected:
protected:
// function members
protected:
protected:
};
class SimpleTask : public ObDynamicThreadTask {
public:
public:
int process(const bool& is_stop)
{
UNUSED(is_stop);

View File

@ -25,7 +25,7 @@ TEST(DISABLED_TestSimpleThreadPool, Basic)
ATOMIC_INC(&handle_cnt_);
}
public:
public:
int handle_cnt_ = 0;
} pool;
EXPECT_NE(OB_SUCCESS, pool.init(0, 10));

View File

@ -18,7 +18,7 @@ using namespace oceanbase::common;
using namespace oceanbase::lib;
class TestTimerTask : public ObTimerTask {
public:
public:
TestTimerTask() : running_(false), task_run_count_(0)
{}
@ -64,7 +64,7 @@ TEST(TG, timer)
}
class Handler : public TGTaskHandler {
public:
public:
void handle(void* task) override
{
UNUSED(task);
@ -103,7 +103,7 @@ TEST(TG, queue_thread)
}
class MyDTask : public common::IObDedupTask {
public:
public:
MyDTask() : common::IObDedupTask(common::T_BLOOMFILTER)
{}
virtual int64_t hash() const
@ -163,7 +163,7 @@ TEST(TG, dedup_queue)
}
class MyRunnable : public TGRunnable {
public:
public:
void run1() override
{
run_count_++;
@ -200,7 +200,7 @@ TEST(TG, thread_pool)
}
class MyTask : public share::ObAsyncTask {
public:
public:
virtual int process() override
{
handle_count_++;

View File

@ -15,7 +15,7 @@
using namespace oceanbase::common;
class TestObThreadLease : public ::testing::Test {
public:
public:
TestObThreadLease()
{}
virtual ~TestObThreadLease()
@ -31,13 +31,13 @@ class TestObThreadLease : public ::testing::Test {
static void TearDownTestCase()
{}
private:
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(TestObThreadLease);
protected:
protected:
// function members
protected:
protected:
};
TEST_F(TestObThreadLease, smoke_test)