Index: core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp b/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp |
index 12a36d921a895b74a4d4962ac8b2c1882d034746..efad3c38f65de0e11fda489460b3ccb1f4cf8490 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp |
@@ -116,7 +116,7 @@ TEST(cpdf_array, Clone) { |
CPDF_Number* obj = new CPDF_Number(elems[i][j]); |
// Starts object number from 1. |
int obj_num = i * kNumOfRowElems + j + 1; |
- obj_holder->InsertIndirectObject(obj_num, obj); |
+ obj_holder->ReplaceIndirectObjectIfHigherGeneration(obj_num, obj); |
arr_elem->InsertAt(j, new CPDF_Reference(obj_holder.get(), obj_num), |
obj_holder.get()); |
} |