• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/interfaces


Commit MetaInfo

Révision8d2d1d08a15fccf8deccdafefdcfad382f8ba018 (tree)
l'heure2017-09-06 03:33:42
AuteurZhuoyao Zhang <zhuoyao@goog...>
CommiterAndroid (Google) Code Review

Message de Log

Merge "Fix VtsHalGraphicsComposerV2_1TargetTest" into oc-mr1-dev

Change Summary

Modification

--- a/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp
+++ b/graphics/composer/2.1/vts/functional/VtsHalGraphicsComposerV2_1TargetTest.cpp
@@ -23,6 +23,7 @@
2323 #include "VtsHalGraphicsMapperTestUtils.h"
2424
2525 #include <VtsHalHidlTargetTestBase.h>
26+#include <VtsHalHidlTargetTestEnvBase.h>
2627 #include <unistd.h>
2728
2829 #include <algorithm>
@@ -703,10 +704,11 @@ TEST_F(GraphicsComposerHidlCommandTest, SET_LAYER_Z_ORDER) {
703704 } // namespace android
704705
705706 int main(int argc, char** argv) {
706- ::testing::InitGoogleTest(&argc, argv);
707-
708- int status = RUN_ALL_TESTS();
709- LOG(INFO) << "Test result = " << status;
710-
711- return status;
707+ using android::hardware::graphics::composer::V2_1::tests::GraphicsComposerHidlEnvironment;
708+ ::testing::AddGlobalTestEnvironment(GraphicsComposerHidlEnvironment::Instance());
709+ ::testing::InitGoogleTest(&argc, argv);
710+ GraphicsComposerHidlEnvironment::Instance()->init(&argc, argv);
711+ int status = RUN_ALL_TESTS();
712+ ALOGI("Test result = %d", status);
713+ return status;
712714 }