reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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));
|
||||
|
||||
10
deps/oblib/unittest/lib/thread/test_tg_mgr.cpp
vendored
10
deps/oblib/unittest/lib/thread/test_tg_mgr.cpp
vendored
@ -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_++;
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user