Searched refs:dict_obj (Results 1 – 5 of 5) sorted by relevance
/external/pdfium/core/fpdfdoc/ |
D | cpdf_filespec_unittest.cpp | 105 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() local 106 CPDF_FileSpec file_spec(dict_obj.get()); in TEST() 109 dict_obj->SetNewFor<CPDF_String>(keywords[i], test_data[i].input); in TEST() 114 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST() 149 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() local 150 CPDF_FileSpec file_spec2(dict_obj.get()); in TEST() 153 EXPECT_STREQ(test_data.expected, dict_obj->GetUnicodeTextFor("F").c_str()); in TEST() 154 EXPECT_STREQ(test_data.expected, dict_obj->GetUnicodeTextFor("UF").c_str()); in TEST() 168 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() local 169 CPDF_FileSpec file_spec(dict_obj.get()); in TEST() [all …]
|
/external/pdfium/core/fxge/dib/ |
D | cstretchengine_unittest.cpp | 21 std::unique_ptr<CPDF_Dictionary> dict_obj = in TEST() local 23 dict_obj->SetNewFor<CPDF_Number>("Width", 71000); in TEST() 24 dict_obj->SetNewFor<CPDF_Number>("Height", 12500); in TEST() 26 pdfium::MakeUnique<CPDF_Stream>(nullptr, 0, std::move(dict_obj)); in TEST()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_object_unittest.cpp | 882 CPDF_Dictionary* dict_obj = arr_obj->InsertNewAt<CPDF_Dictionary>(0); in TEST() local 883 dict_obj->SetFor("arr", pdfium::WrapUnique(arr_obj.get())); in TEST() 899 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() local 900 CPDF_Stream* stream_obj = dict_obj->SetNewFor<CPDF_Stream>( in TEST() 901 "stream", nullptr, 0, pdfium::WrapUnique(dict_obj.get())); in TEST() 915 CPDF_Dictionary* dict_obj = objects_holder.NewIndirect<CPDF_Dictionary>(); in TEST() local 918 dict_obj->GetObjNum()); in TEST() 920 dict_obj->SetFor("arr", std::move(arr_obj)); in TEST() 921 EXPECT_EQ(1u, dict_obj->GetObjNum()); in TEST() 925 EXPECT_EQ(dict_obj, elem0->AsReference()->GetDirect()); in TEST() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_capi.py | 289 dict_obj = {'foo': 1, 'bar': 2, 'spam': 3} 292 dict_obj, OrderedDict(dict_obj), 293 Mapping1(dict_obj), Mapping2(dict_obj)]:
|
/external/python/cpython3/Lib/ |
D | inspect.py | 417 dict_obj = None 449 dict_obj = base.__dict__[name] 457 obj = get_obj if get_obj is not None else dict_obj 459 if isinstance(dict_obj, (staticmethod, types.BuiltinMethodType)): 461 obj = dict_obj 462 elif isinstance(dict_obj, (classmethod, types.ClassMethodDescriptorType)): 464 obj = dict_obj 465 elif isinstance(dict_obj, property): 467 obj = dict_obj
|