summaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp')
-rw-r--r--vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp b/vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp
new file mode 100644
index 00000000000..60cbf6d03a7
--- /dev/null
+++ b/vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp
@@ -0,0 +1,15 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#include <vespa/vespalib/testkit/testapp.h>
+#include <vbench/test/all.h>
+
+using namespace vbench;
+
+TEST_FF("dropped tagger", RequestReceptor(), DroppedTagger(f1)) {
+ Request::UP req(new Request());
+ EXPECT_EQUAL(Request::STATUS_OK, req->status());
+ f2.handle(std::move(req));
+ ASSERT_TRUE(f1.request.get() != 0);
+ EXPECT_EQUAL(Request::STATUS_DROPPED, f1.request->status());
+}
+
+TEST_MAIN() { TEST_RUN_ALL(); }