summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/schema/encrypt_keyword_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/schema/encrypt_keyword_test.cpp')
-rw-r--r--src/mongo/db/matcher/schema/encrypt_keyword_test.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/matcher/schema/encrypt_keyword_test.cpp b/src/mongo/db/matcher/schema/encrypt_keyword_test.cpp
index ddc0e301d33..aaac0d897bc 100644
--- a/src/mongo/db/matcher/schema/encrypt_keyword_test.cpp
+++ b/src/mongo/db/matcher/schema/encrypt_keyword_test.cpp
@@ -32,6 +32,7 @@
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/bson/json.h"
#include "mongo/db/matcher/expression_always_boolean.h"
+#include "mongo/db/matcher/schema/assert_serializes_to.h"
#include "mongo/db/matcher/schema/json_schema_parser.h"
#include "mongo/db/pipeline/expression_context_for_test.h"
#include "mongo/unittest/unittest.h"
@@ -39,13 +40,6 @@
namespace mongo {
namespace {
-#define ASSERT_SERIALIZES_TO(match, expected) \
- do { \
- BSONObjBuilder bob; \
- match->serialize(&bob); \
- ASSERT_BSONOBJ_EQ(bob.obj(), expected); \
- } while (false)
-
TEST(JSONSchemaParserEncryptTest, EncryptTranslatesCorrectly) {
BSONObj schema = fromjson("{properties: {foo: {encrypt: {}}}}");
auto result = JSONSchemaParser::parse(new ExpressionContextForTest(), schema);