diff options
Diffstat (limited to 'jni/node_test.cpp')
-rw-r--r-- | jni/node_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jni/node_test.cpp b/jni/node_test.cpp index 357cea8e..0d7417f9 100644 --- a/jni/node_test.cpp +++ b/jni/node_test.cpp @@ -217,7 +217,8 @@ TEST_F(NodeTest, LookupAbsolutePath) { TEST_F(NodeTest, AddDestroyHandle) { unique_node_ptr node = CreateNode(nullptr, "/path"); - handle* h = new handle(-1, new mediaprovider::fuse::RedactionInfo, true /* cached */); + handle* h = new handle(-1, new mediaprovider::fuse::RedactionInfo, true /* cached */, + false /* passthrough */); node->AddHandle(h); ASSERT_TRUE(node->HasCachedHandle()); @@ -228,8 +229,8 @@ TEST_F(NodeTest, AddDestroyHandle) { // the node in question. EXPECT_DEATH(node->DestroyHandle(h), ""); EXPECT_DEATH(node->DestroyHandle(nullptr), ""); - std::unique_ptr<handle> h2( - new handle(-1, new mediaprovider::fuse::RedactionInfo, true /* cached */)); + std::unique_ptr<handle> h2(new handle(-1, new mediaprovider::fuse::RedactionInfo, + true /* cached */, false /* passthrough */)); EXPECT_DEATH(node->DestroyHandle(h2.get()), ""); } |