Home
last modified time | relevance | path

Searched refs:dict_obj (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp105 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/
Dcstretchengine_unittest.cpp21 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/
Dcpdf_object_unittest.cpp882 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/
Dtest_capi.py289 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/
Dinspect.py417 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