summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp b/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
index 5ddf4826597..96e9ff29fdc 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
@@ -26,14 +26,11 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <iostream>
-
-#include "src/common/api_const.h"
-#include "src/main/test.h"
+#include "test_harness/test.h"
namespace test_harness {
/* Defines what data is written to the tracking table for use in custom validation. */
-class tracking_table_template : public workload_tracking {
+class tracking_table_template : public test_harness::workload_tracking {
public:
tracking_table_template(
@@ -57,9 +54,9 @@ class tracking_table_template : public workload_tracking {
* Class that defines operations that do nothing as an example. This shows how database operations
* can be overridden and customized.
*/
-class test_template : public test {
+class test_template : public test_harness::test {
public:
- test_template(const test_args &args) : test(args)
+ test_template(const test_harness::test_args &args) : test(args)
{
init_tracking(new tracking_table_template(_config->get_subconfig(WORKLOAD_TRACKING),
_config->get_bool(COMPRESSION_ENABLED), *_timestamp_manager));
@@ -73,37 +70,38 @@ class test_template : public test {
}
void
- populate(database &, timestamp_manager *, configuration *, workload_tracking *) override final
+ populate(test_harness::database &, test_harness::timestamp_manager *,
+ test_harness::configuration *, test_harness::workload_tracking *) override final
{
std::cout << "populate: nothing done." << std::endl;
}
void
- custom_operation(thread_context *) override final
+ custom_operation(test_harness::thread_context *) override final
{
std::cout << "custom_operation: nothing done." << std::endl;
}
void
- insert_operation(thread_context *) override final
+ insert_operation(test_harness::thread_context *) override final
{
std::cout << "insert_operation: nothing done." << std::endl;
}
void
- read_operation(thread_context *) override final
+ read_operation(test_harness::thread_context *) override final
{
std::cout << "read_operation: nothing done." << std::endl;
}
void
- remove_operation(thread_context *) override final
+ remove_operation(test_harness::thread_context *) override final
{
std::cout << "remove_operation: nothing done." << std::endl;
}
void
- update_operation(thread_context *) override final
+ update_operation(test_harness::thread_context *) override final
{
std::cout << "update_operation: nothing done." << std::endl;
}