style: reformat C/C++ sources and headers with clang-format
Run clang-format over all project C/C++ source and header files (.c, .cpp, .cc, .h, .hpp, .hh, .m, .mm) under app/ and tests/. Non-source files (svg, qm, qrc, etc.) were not touched.
This commit is contained in:
@@ -4,39 +4,39 @@
|
||||
|
||||
TEST(CommonJobTime, ConstructorAcquiresValue)
|
||||
{
|
||||
olive::JobTime a;
|
||||
olive::JobTime b;
|
||||
olive::JobTime a;
|
||||
olive::JobTime b;
|
||||
|
||||
EXPECT_NE(a.value(), b.value());
|
||||
EXPECT_LT(a.value(), b.value());
|
||||
EXPECT_NE(a.value(), b.value());
|
||||
EXPECT_LT(a.value(), b.value());
|
||||
}
|
||||
|
||||
TEST(CommonJobTime, AcquireUpdatesValue)
|
||||
{
|
||||
olive::JobTime a;
|
||||
uint64_t first = a.value();
|
||||
a.Acquire();
|
||||
uint64_t second = a.value();
|
||||
olive::JobTime a;
|
||||
uint64_t first = a.value();
|
||||
a.Acquire();
|
||||
uint64_t second = a.value();
|
||||
|
||||
EXPECT_GT(second, first);
|
||||
EXPECT_GT(second, first);
|
||||
}
|
||||
|
||||
TEST(CommonJobTime, ComparisonOperators)
|
||||
{
|
||||
olive::JobTime a;
|
||||
olive::JobTime b;
|
||||
olive::JobTime a;
|
||||
olive::JobTime b;
|
||||
|
||||
EXPECT_LT(a, b);
|
||||
EXPECT_GT(b, a);
|
||||
EXPECT_LE(a, a);
|
||||
EXPECT_GE(b, b);
|
||||
EXPECT_EQ(a, a);
|
||||
EXPECT_NE(a, b);
|
||||
EXPECT_LT(a, b);
|
||||
EXPECT_GT(b, a);
|
||||
EXPECT_LE(a, a);
|
||||
EXPECT_GE(b, b);
|
||||
EXPECT_EQ(a, a);
|
||||
EXPECT_NE(a, b);
|
||||
}
|
||||
|
||||
TEST(CommonJobTime, DebugStream)
|
||||
{
|
||||
olive::JobTime a;
|
||||
QDebug debug(QtDebugMsg);
|
||||
debug << a;
|
||||
olive::JobTime a;
|
||||
QDebug debug(QtDebugMsg);
|
||||
debug << a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user