History

checking the scripits for unittest automatically on mobile

syureyi committed 12 years ago

Commit f78f3951 parent a22d9766 files · +144 −32Browse files

Showing the changes to test/api/encoder_test.cpp (1 of 6 files). Show all

Unified · Split

test/api/encoder_test.cpp+53−1
@@ -67,7 +67,58 @@ TEST_P (EncoderOutputTest, CompareOutput) { · 66 unmodified lines
67 CompareHash (digest, p.hashStr);67 CompareHash (digest, p.hashStr);
68 }68 }
69}69}
70 70#if defined(ANDROID_NDK)
71static const EncodeFileParam kFileParamArray[] = {
72 {
73 "/sdcard/res/CiscoVT2people_320x192_12fps.yuv",
74 "0a36b75e423fc6b49f6adf7eee12c039a096f538", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 1
75 },
76 {
77 "/sdcard/res/CiscoVT2people_160x96_6fps.yuv",
78 "73981e6ea5b62f7338212c538a7cc755e7c9c030", CAMERA_VIDEO_REAL_TIME, 160, 96, 6.0f, SM_SINGLE_SLICE, false, 1
79 },
80 {
81 "/sdcard/res/Static_152_100.yuv",
82 "02bbff550ee0630e44e46e14dc459d3686f2a360", CAMERA_VIDEO_REAL_TIME, 152, 100, 6.0f, SM_SINGLE_SLICE, false, 1
83 },
84 {
85 "/sdcard/res/CiscoVT2people_320x192_12fps.yuv",
86 "c8b759bcec7ffa048f1d3ded594b8815bed0aead", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_ROWMB_SLICE, false, 1 // One slice per MB row
87 },
88 {
89 "/sdcard/res/CiscoVT2people_320x192_12fps.yuv",
90 "e64ba75456c821ca35a949eda89f85bff8ee69fa", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, true, 1
91 },
92 {
93 "/sdcard/res/CiscoVT2people_320x192_12fps.yuv",
94 "684e6d141ada776892bdb01ee93efe475983ed36", CAMERA_VIDEO_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 2
95 },
96 {
97 "/sdcard/res/Cisco_Absolute_Power_1280x720_30fps.yuv",
98 "2bc06262d87fa0897ad4c336cc4047d5a67f7203", CAMERA_VIDEO_REAL_TIME, 1280, 720, 30.0f, SM_DYN_SLICE, false, 1
99 },
100 {
101 "/sdcard/res/Cisco_Absolute_Power_1280x720_30fps.yuv",
102 "68c3220e49b7a57d563faf7c99a870ab34a23400", CAMERA_VIDEO_REAL_TIME, 1280, 720, 30.0f, SM_SINGLE_SLICE, false, 4
103 },
104 {
105 "/sdcard/res/CiscoVT2people_320x192_12fps.yuv",
106 "030d0e2d742ac039c2ab6333fe7cb18623c0d283", SCREEN_CONTENT_REAL_TIME, 320, 192, 12.0f, SM_SINGLE_SLICE, false, 1
107 },
108 {
109 "/sdcard/res/CiscoVT2people_160x96_6fps.yuv",
110 "40aa19d4b2684a59e689860d2a793876f33904f7", SCREEN_CONTENT_REAL_TIME, 160, 96, 6.0f, SM_SINGLE_SLICE, false, 1
111 },
112 {
113 "/sdcard/res/Static_152_100.yuv",
114 "494068b59aa9ed9118a9f33174b732024effc870", SCREEN_CONTENT_REAL_TIME, 152, 100, 6.0f, SM_SINGLE_SLICE, false, 1
115 },
116 {
117 "/sdcard/res/Cisco_Absolute_Power_1280x720_30fps.yuv",
118 "dc5aedee4d8f1fe8d6647a9f7b8c2d3df758ac27", SCREEN_CONTENT_REAL_TIME, 1280, 720, 30.0f, SM_DYN_SLICE, false, 1
119 },
120};
121#else
71static const EncodeFileParam kFileParamArray[] = {122static const EncodeFileParam kFileParamArray[] = {
72 {123 {
73 "res/CiscoVT2people_320x192_12fps.yuv",124 "res/CiscoVT2people_320x192_12fps.yuv",
@@ -119,5 +170,6 @@ static const EncodeFileParam kFileParamArray[] = { · 45 unmodified lines
119 },170 },
120};171};
121 172
173#endif
122INSTANTIATE_TEST_CASE_P (EncodeFile, EncoderOutputTest,174INSTANTIATE_TEST_CASE_P (EncodeFile, EncoderOutputTest,
123 ::testing::ValuesIn (kFileParamArray));175 ::testing::ValuesIn (kFileParamArray));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t