diff options
Diffstat (limited to 'tests/camera2/camera2.cpp')
-rw-r--r-- | tests/camera2/camera2.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/camera2/camera2.cpp b/tests/camera2/camera2.cpp index f43513e..b3bbc95 100644 --- a/tests/camera2/camera2.cpp +++ b/tests/camera2/camera2.cpp @@ -30,6 +30,8 @@ #include "camera2_utils.h" namespace android { +namespace camera2 { +namespace tests { class Camera2Test: public testing::Test { public: @@ -103,6 +105,11 @@ class Camera2Test: public testing::Test { } } + static void TearDownTestCase() { + hw_module_t *module = reinterpret_cast<hw_module_t*>(sCameraModule); + ASSERT_EQ(0, HWModuleHelpers::closeModule(module)); + } + static const camera_module_t *getCameraModule() { return sCameraModule; } @@ -606,7 +613,7 @@ TEST_F(Camera2Test, ConstructDefaultRequests) { } } -TEST_F(Camera2Test, Capture1Jpeg) { +TEST_F(Camera2Test, DISABLED_Capture1Jpeg) { status_t res; for (int id = 0; id < getNumCameras(); id++) { @@ -720,5 +727,6 @@ TEST_F(Camera2Test, Capture1Jpeg) { } } - +} // namespace tests +} // namespace camera2 } // namespace android |