summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-08-01 15:50:37 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-08-02 19:21:34 -0400
commit68051585b17682c1e13acdf440b2c78868054513 (patch)
tree1b677a81d5ef5d801a69cd9ce7fa7a9d7aac6295 /src/mongo/idl
parent0eea3fc035718c7ae6fc570670f1c51f8f3d71a5 (diff)
downloadmongo-68051585b17682c1e13acdf440b2c78868054513.tar.gz
SERVER-29201 Implement SessionsCollectionStandalone
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/idl_test.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/idl/idl_test.cpp b/src/mongo/idl/idl_test.cpp
index a67de83a429..3b0387b412c 100644
--- a/src/mongo/idl/idl_test.cpp
+++ b/src/mongo/idl/idl_test.cpp
@@ -547,10 +547,10 @@ TEST(IDLNestedStruct, TestDuplicateTypes) {
"field3" << BSON("field1" << 4 << "field2" << 5 << "field3" << 6));
auto testStruct = NestedWithDuplicateTypes::parse(ctxt, testDoc);
- assert_same_types<decltype(testStruct.getField1()), const RequiredStrictField3&>();
+ assert_same_types<decltype(testStruct.getField1()), RequiredStrictField3&>();
assert_same_types<decltype(testStruct.getField2()),
const boost::optional<RequiredNonStrictField3>&>();
- assert_same_types<decltype(testStruct.getField3()), const RequiredStrictField3&>();
+ assert_same_types<decltype(testStruct.getField3()), RequiredStrictField3&>();
ASSERT_EQUALS(1, testStruct.getField1().getField1());
ASSERT_EQUALS(2, testStruct.getField1().getField2());
@@ -1228,10 +1228,9 @@ TEST(IDLChainedType, TestChainedStruct) {
auto testStruct = Chained_struct_mixed::parse(ctxt, testDoc);
- assert_same_types<decltype(testStruct.getChained_any_basic_type()),
- const Chained_any_basic_type&>();
+ assert_same_types<decltype(testStruct.getChained_any_basic_type()), Chained_any_basic_type&>();
assert_same_types<decltype(testStruct.getChainedObjectBasicType()),
- const Chained_object_basic_type&>();
+ Chained_object_basic_type&>();
ASSERT_EQUALS(testStruct.getField3(), "abc");