Home
last modified time | relevance | path

Searched refs:dut_ (Results 1 – 12 of 12) sorted by relevance

/hardware/libhardware/modules/camera/3_4/
Drequest_tracker_test.cpp36 dut_.reset(new RequestTracker()); in SetUp()
39 dut_->SetStreamConfiguration(config); in SetUp()
63 EXPECT_EQ(dut_->CanAddRequest(*request), expected); in AddRequest()
65 EXPECT_FALSE(dut_->InFlight(frame)); in AddRequest()
67 EXPECT_EQ(dut_->Add(request), expected); in AddRequest()
69 EXPECT_TRUE(dut_->InFlight(frame)); in AddRequest()
76 std::shared_ptr<RequestTracker> dut_; member in default_camera_hal::RequestTrackerTest
81 EXPECT_FALSE(dut_->InFlight(frame)); in TEST_F()
86 EXPECT_TRUE(dut_->Empty()); in TEST_F()
96 EXPECT_TRUE(dut_->Add(expected)); in TEST_F()
[all …]
Dstatic_properties_test.cpp39 dut_.reset(); in SetUp()
44 dut_.reset(StaticProperties::NewStaticProperties(std::move(mock_reader_))); in PrepareDUT()
50 ASSERT_NE(dut_, nullptr); in PrepareDefaultDUT()
114 EXPECT_EQ(dut_->StreamConfigurationSupported(&config), expected); in ExpectConfigurationSupported()
117 std::unique_ptr<StaticProperties> dut_; member in default_camera_hal::StaticPropertiesTest
200 EXPECT_EQ(dut_->facing(), test_facing_); in TEST_F()
201 EXPECT_EQ(dut_->orientation(), test_orientation_); in TEST_F()
211 EXPECT_EQ(dut_, nullptr); in TEST_F()
219 EXPECT_EQ(dut_, nullptr); in TEST_F()
227 EXPECT_EQ(dut_, nullptr); in TEST_F()
[all …]
/hardware/libhardware/modules/camera/3_4/metadata/
Dslider_control_options_test.cpp38 dut_.reset(new SliderControlOptions<int>(min_, max_, mock_defaults_)); in SetUp()
41 std::unique_ptr<SliderControlOptions<int>> dut_; member in v4l2_camera_hal::SliderControlOptionsTest
51 EXPECT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F()
56 EXPECT_TRUE(dut_->IsSupported(i)); in TEST_F()
59 EXPECT_FALSE(dut_->IsSupported(min_ - 1)); in TEST_F()
60 EXPECT_FALSE(dut_->IsSupported(max_ + 1)); in TEST_F()
66 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
70 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F()
80 ASSERT_FALSE(dut_->IsSupported(default_val)); in TEST_F()
81 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
[all …]
Dmenu_control_options_test.cpp38 dut_.reset(new MenuControlOptions<int>(options_, mock_defaults_)); in SetUp()
41 std::unique_ptr<MenuControlOptions<int>> dut_; member in v4l2_camera_hal::MenuControlOptionsTest
49 EXPECT_EQ(dut_->MetadataRepresentation(), options_); in TEST_F()
54 EXPECT_TRUE(dut_->IsSupported(option)); in TEST_F()
57 EXPECT_FALSE(dut_->IsSupported(99)); in TEST_F()
63 ASSERT_TRUE(dut_->IsSupported(expected)); in TEST_F()
67 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F()
75 ASSERT_FALSE(dut_->IsSupported(default_val)); in TEST_F()
81 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); in TEST_F()
83 EXPECT_TRUE(dut_->IsSupported(actual)); in TEST_F()
[all …]
Dmetadata_reader_test.cpp39 dut_.reset(); in SetUp()
47 dut_ = std::make_unique<MetadataReader>(std::move(metadata_)); in FillDUT()
51 std::unique_ptr<MetadataReader> dut_; member in default_camera_hal::MetadataReaderTest
81 EXPECT_EQ(dut_->Facing(&actual), 0); in TEST_F()
93 EXPECT_EQ(dut_->Facing(&actual), -EINVAL); in TEST_F()
99 EXPECT_EQ(dut_->Facing(&actual), -ENOENT); in TEST_F()
110 EXPECT_EQ(dut_->Orientation(&actual), 0); in TEST_F()
123 EXPECT_EQ(dut_->Orientation(&actual), -EINVAL); in TEST_F()
132 EXPECT_EQ(dut_->Orientation(&actual), -EINVAL); in TEST_F()
139 EXPECT_EQ(dut_->Orientation(&actual), -ENOENT); in TEST_F()
[all …]
Dtagged_control_options_test.cpp36 dut_.reset(); in SetUp()
43 dut_.reset( in PrepareDUT()
47 std::unique_ptr<TaggedControlOptions<uint8_t>> dut_; member in v4l2_camera_hal::TaggedControlOptionsTest
54 EXPECT_EQ(dut_->tag(), tag_); in TEST_F()
62 ASSERT_EQ(dut_->MetadataRepresentation(), expected); in TEST_F()
70 ASSERT_EQ(dut_->IsSupported(value), supported); in TEST_F()
78 ASSERT_EQ(dut_->IsSupported(value), supported); in TEST_F()
88 EXPECT_EQ(dut_->DefaultValueForTemplate(template_id, &actual), 0); in TEST_F()
99 EXPECT_EQ(dut_->DefaultValueForTemplate(template_id, &unused), err); in TEST_F()
Dtagged_control_delegate_test.cpp36 dut_.reset(); in SetUp()
43 dut_.reset( in PrepareDUT()
47 std::unique_ptr<TaggedControlDelegate<uint8_t>> dut_; member in v4l2_camera_hal::TaggedControlDelegateTest
54 EXPECT_EQ(dut_->tag(), tag_); in TEST_F()
63 ASSERT_EQ(dut_->GetValue(&actual), 0); in TEST_F()
72 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F()
79 ASSERT_EQ(dut_->SetValue(value), 0); in TEST_F()
87 ASSERT_EQ(dut_->SetValue(value), err); in TEST_F()
Ddefault_option_delegate_test.cpp31 dut_.reset(new DefaultOptionDelegate<int>(defaults_)); in SetUp()
34 std::unique_ptr<DefaultOptionDelegate<int>> dut_; member in v4l2_camera_hal::DefaultOptionDelegateTest
43 dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_STILL_CAPTURE, &actual)); in TEST_F()
50 EXPECT_TRUE(dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG, in TEST_F()
56 dut_.reset(new DefaultOptionDelegate<int>({})); in TEST_F()
58 EXPECT_FALSE(dut_->DefaultValueForTemplate(CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG, in TEST_F()
Dmetadata_test.cpp41 dut_.reset(); in SetUp()
59 dut_.reset(new Metadata(std::move(components))); in AddComponents()
71 std::unique_ptr<Metadata> dut_; member in v4l2_camera_hal::MetadataTest
103 ASSERT_EQ(dut_->FillStaticMetadata(metadata_.get()), 0); in TEST_F()
162 EXPECT_EQ(dut_->FillStaticMetadata(metadata_.get()), err); in TEST_F()
167 EXPECT_EQ(dut_->FillStaticMetadata(nullptr), -EINVAL); in TEST_F()
179 EXPECT_TRUE(dut_->IsValidRequest(*non_empty_metadata_)); in TEST_F()
194 EXPECT_FALSE(dut_->IsValidRequest(*non_empty_metadata_)); in TEST_F()
205 EXPECT_TRUE(dut_->IsValidRequest(*metadata_)); in TEST_F()
219 EXPECT_EQ(dut_->GetRequestTemplate(template_type, metadata_.get()), 0); in TEST_F()
[all …]
Dv4l2_control_delegate_test.cpp37 dut_.reset(new V4L2ControlDelegate<uint8_t>( in SetUp()
41 std::unique_ptr<V4L2ControlDelegate<uint8_t>> dut_; member in v4l2_camera_hal::V4L2ControlDelegateTest
56 ASSERT_EQ(dut_->GetValue(&actual), 0); in TEST_F()
69 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F()
77 ASSERT_EQ(dut_->GetValue(&unused), err); in TEST_F()
88 ASSERT_EQ(dut_->SetValue(input), 0); in TEST_F()
95 ASSERT_EQ(dut_->SetValue(input), err); in TEST_F()
107 ASSERT_EQ(dut_->SetValue(input), err); in TEST_F()
Dmap_converter_test.cpp35 dut_.reset(new MapConverter<int, int32_t, int32_t>(converter_, map_)); in SetUp()
44 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvertToV4L2()
49 std::unique_ptr<MapConverter<int, int32_t, int32_t>> dut_; member in v4l2_camera_hal::MapConverterTest
91 EXPECT_EQ(dut_->MetadataToV4L2(initial, &unused), err); in TEST_F()
101 ASSERT_EQ(dut_->V4L2ToMetadata(kv->second, &actual), 0); in TEST_F()
107 ASSERT_EQ(dut_->V4L2ToMetadata(100, &unused), -EINVAL); in TEST_F()
Dranged_converter_test.cpp35 dut_.reset( in SetUp()
45 ASSERT_EQ(dut_->MetadataToV4L2(initial, &actual), 0); in ExpectConvert()
50 std::unique_ptr<RangedConverter<int, int32_t>> dut_; member in v4l2_camera_hal::RangedConverterTest
83 EXPECT_EQ(dut_->MetadataToV4L2(initial, &unused), err); in TEST_F()