1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2022 The PDFium Authors 2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file. 4*3ac0a46fSAndroid Build Coastguard Worker 5*3ac0a46fSAndroid Build Coastguard Worker #include "fxjs/xfa/cjx_object.h" 6*3ac0a46fSAndroid Build Coastguard Worker 7*3ac0a46fSAndroid Build Coastguard Worker #include "testing/gtest/include/gtest/gtest.h" 8*3ac0a46fSAndroid Build Coastguard Worker #include "testing/xfa_js_embedder_test.h" 9*3ac0a46fSAndroid Build Coastguard Worker 10*3ac0a46fSAndroid Build Coastguard Worker class CJX_ObjectEmbedderTest : public XFAJSEmbedderTest {}; 11*3ac0a46fSAndroid Build Coastguard Worker 12*3ac0a46fSAndroid Build Coastguard Worker // Should not crash, but document is not valid. TEST_F(CJX_ObjectEmbedderTest,Bug1327884)13*3ac0a46fSAndroid Build Coastguard WorkerTEST_F(CJX_ObjectEmbedderTest, Bug1327884) { 14*3ac0a46fSAndroid Build Coastguard Worker ASSERT_FALSE(OpenDocument("bug_1327884.pdf")); 15*3ac0a46fSAndroid Build Coastguard Worker } 16*3ac0a46fSAndroid Build Coastguard Worker 17*3ac0a46fSAndroid Build Coastguard Worker // Should not CHECK(), but document is uninteresting. TEST_F(CJX_ObjectEmbedderTest,Bug1333298)18*3ac0a46fSAndroid Build Coastguard WorkerTEST_F(CJX_ObjectEmbedderTest, Bug1333298) { 19*3ac0a46fSAndroid Build Coastguard Worker ASSERT_TRUE(OpenDocument("bug_1333298.pdf")); 20*3ac0a46fSAndroid Build Coastguard Worker } 21