summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0be9549)
raw | patch | inline | side by side (parent: 0be9549)
author | Emilian Peev <epeev@google.com> | |
Thu, 7 Jun 2018 16:49:26 +0000 (17:49 +0100) | ||
committer | Emilian Peev <epeev@google.com> | |
Thu, 7 Jun 2018 17:21:25 +0000 (18:21 +0100) |
Per API specification "physicalCameraId" must not
contain any logical camera ids. The test case
should only use the physical ids it receives from the
camera static metadata.
Bug:109874630
Test:run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I82c5bf44f4572b3a6abdbb3101a11140907b1c9e
contain any logical camera ids. The test case
should only use the physical ids it receives from the
camera static metadata.
Bug:109874630
Test:run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I82c5bf44f4572b3a6abdbb3101a11140907b1c9e
camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp | patch | blob | history |
diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp
index ff7c0ee862a4cba4fe4e03c349ea70fe6c5816cc..95c7167c3b096dcdb5c3034d994014981f375e4a 100644 (file)
ret = session->close();
ASSERT_TRUE(ret.isOk());
+ // Leave only 2 physical devices in the id set.
auto it = physicalIds.begin();
- string physicalDeviceId = *it;
- // Leave only the first physical device in the id set and insert the logical device.
+ string physicalDeviceId = *it; it++;
physicalIds.erase(++it, physicalIds.end());
- physicalIds.emplace(deviceId);
ASSERT_EQ(physicalIds.size(), 2u);
V3_4::HalStreamConfiguration halStreamConfig;