aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp')
-rw-r--r--vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp b/vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp
index a94a150c4e1..00cc77d19cb 100644
--- a/vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp
+++ b/vespalib/src/tests/growablebytebuffer/growablebytebuffer_test.cpp
@@ -1,19 +1,11 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/vespalib/testkit/testapp.h>
+#include <vespa/vespalib/gtest/gtest.h>
#include <vespa/vespalib/util/growablebytebuffer.h>
using namespace vespalib;
-class Test : public TestApp
-{
-public:
- void testGrowing();
- int Main() override;
-};
-
-void
-Test::testGrowing()
+TEST(GrowableByteBufferTest, test_growing)
{
GrowableByteBuffer buf(10);
@@ -23,15 +15,7 @@ Test::testGrowing()
buf.putDouble(1234);
buf.putString("hei der");
- EXPECT_EQUAL(35u, buf.position());
-}
-
-int
-Test::Main()
-{
- TEST_INIT("guard_test");
- testGrowing();
- TEST_DONE();
+ EXPECT_EQ(35u, buf.position());
}
-TEST_APPHOOK(Test)
+GTEST_MAIN_RUN_ALL_TESTS()