From: Zhijun He Date: Thu, 7 Aug 2014 23:25:41 +0000 (-0700) Subject: Camera2/3 Test: cleanup the test X-Git-Tag: android-x86-6.0-r1~58^2~55 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b5ac45ff29d10bc31b2edd893125f1594b3f6065;p=android-x86%2Fhardware-libhardware.git Camera2/3 Test: cleanup the test 1. Fix the HAL version check 2. Disable some test temporarily as the deprecated tags were used. Bug: 16855498 Change-Id: I9f9dc285a1085b471d03c5a900cc44dd2a7480c3 --- diff --git a/tests/camera2/CameraBurstTests.cpp b/tests/camera2/CameraBurstTests.cpp index 65ff460..58763de 100644 --- a/tests/camera2/CameraBurstTests.cpp +++ b/tests/camera2/CameraBurstTests.cpp @@ -311,7 +311,8 @@ TEST_F(CameraBurstTest, ManualExposureControl) { * $ setenv CAMERA2_TEST_VARIABLE_BURST_DUMP_FRAMES 1 * $ /data/nativetest/camera2_test/camera2_test --gtest_filter="*VariableBurst" */ -TEST_F(CameraBurstTest, VariableBurst) { +// Disable this test for now, as we need cleanup the usage of the deprecated tag quite a bit. +TEST_F(CameraBurstTest, DISABLED_VariableBurst) { TEST_EXTENSION_FORKING_INIT; diff --git a/tests/camera2/CameraModuleFixture.h b/tests/camera2/CameraModuleFixture.h index acf41e1..0bb0e7d 100644 --- a/tests/camera2/CameraModuleFixture.h +++ b/tests/camera2/CameraModuleFixture.h @@ -97,6 +97,8 @@ struct CameraModuleFixture { *device = new Camera2Device(cameraID); break; case CAMERA_DEVICE_API_VERSION_3_0: + case CAMERA_DEVICE_API_VERSION_3_1: + case CAMERA_DEVICE_API_VERSION_3_2: *device = new Camera3Device(cameraID); break; default: diff --git a/tests/camera2/CameraMultiStreamTests.cpp b/tests/camera2/CameraMultiStreamTests.cpp index 536b656..066f4ee 100644 --- a/tests/camera2/CameraMultiStreamTests.cpp +++ b/tests/camera2/CameraMultiStreamTests.cpp @@ -467,7 +467,8 @@ public: * * 2. Manual control(gain/exposure) of mutiple burst capture. */ -TEST_F(CameraMultiStreamTest, MultiBurst) { +// Disable this test for now, as we need cleanup the usage of the deprecated tag quite a bit. +TEST_F(CameraMultiStreamTest, DISABLED_MultiBurst) { TEST_EXTENSION_FORKING_INIT;