Home | History | Annotate | Download | only in testsuite

Lines Matching refs:object

1 // object_unittest.cc -- test Object, Relobj, etc.
25 #include "object.h"
37 // Test basic Object functionality.
47 Object* object = make_elf_object("test.o", &input_file, 0,
49 CHECK(object->name() == "test.o");
50 CHECK(!object->is_dynamic());
51 CHECK(object->is_locked());
52 object->unlock(task);
53 CHECK(!object->is_locked());
54 object->lock(task);
55 CHECK(object->shnum() == 5);
56 CHECK(object->section_name(0).empty());
57 CHECK(object->section_name(1) == ".test");
58 CHECK(object->section_flags(0) == 0);
59 CHECK(object->section_flags(1) == elfcpp::SHF_ALLOC);
60 object->unlock(task);
103 Register_test object_register("Object", Object_test);