@@ -72,7 +72,6 @@ string GetUpdateResponse2(const string& app_id,
72
72
const string& codebase,
73
73
const string& filename,
74
74
const string& hash,
75
- const string& needsadmin,
76
75
const string& size) {
77
76
string response =
78
77
" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?><response "
@@ -88,7 +87,6 @@ string GetUpdateResponse2(const string& app_id,
88
87
" IsDelta=\" true\" "
89
88
" IsDeltaPayload=\" true\" "
90
89
" sha256=\" " + hash + " \" "
91
- " needsadmin=\" " + needsadmin + " \" " +
92
90
" /></actions></manifest></updatecheck></app></response>" ;
93
91
LOG (INFO) << " Response = " << response;
94
92
return response;
@@ -99,14 +97,12 @@ string GetUpdateResponse(const string& app_id,
99
97
const string& codebase,
100
98
const string& filename,
101
99
const string& hash,
102
- const string& needsadmin,
103
100
const string& size) {
104
101
return GetUpdateResponse2 (app_id,
105
102
display_version,
106
103
codebase,
107
104
filename,
108
105
hash,
109
- needsadmin,
110
106
size);
111
107
}
112
108
} // namespace {}
@@ -207,7 +203,6 @@ TEST(OmahaRequestActionTest, ValidUpdateTest) {
207
203
" http://code/base/" , // dl url
208
204
" file.signed" , // file name
209
205
" HASH1234=" , // checksum
210
- " false" , // needs admin
211
206
" 123" ), // size
212
207
-1 ,
213
208
false , // ping_only
@@ -220,7 +215,6 @@ TEST(OmahaRequestActionTest, ValidUpdateTest) {
220
215
EXPECT_EQ (" http://code/base/file.signed" , response.payload_urls [0 ]);
221
216
EXPECT_EQ (" HASH1234=" , response.hash );
222
217
EXPECT_EQ (123 , response.size );
223
- EXPECT_FALSE (response.needs_admin );
224
218
}
225
219
226
220
TEST (OmahaRequestActionTest, NoOutputPipeTest) {
@@ -340,7 +334,6 @@ TEST(OmahaRequestActionTest, MissingFieldTest) {
340
334
" IsDelta=\" true\" "
341
335
" IsDeltaPayload=\" false\" "
342
336
" sha256=\" lkq34j5345\" "
343
- " needsadmin=\" true\" "
344
337
" /></actions></manifest></updatecheck></app></response>" ;
345
338
LOG (INFO) << " Input Response = " << input_response;
346
339
@@ -358,7 +351,6 @@ TEST(OmahaRequestActionTest, MissingFieldTest) {
358
351
EXPECT_EQ (" http://missing/field/test/f" , response.payload_urls [0 ]);
359
352
EXPECT_EQ (" lkq34j5345" , response.hash );
360
353
EXPECT_EQ (587 , response.size );
361
- EXPECT_TRUE (response.needs_admin );
362
354
}
363
355
364
356
TEST (OmahaRequestActionTest, ConcatUrlSlashTest) {
@@ -376,7 +368,6 @@ TEST(OmahaRequestActionTest, ConcatUrlSlashTest) {
376
368
" IsDelta=\" true\" "
377
369
" IsDeltaPayload=\" false\" "
378
370
" sha256=\" lkq34j5345\" "
379
- " needsadmin=\" true\" "
380
371
" /></actions></manifest></updatecheck></app></response>" ;
381
372
LOG (INFO) << " Input Response = " << input_response;
382
373
@@ -490,7 +481,6 @@ TEST(OmahaRequestActionTest, XmlDecodeTest) {
490
481
" testthe&codebase/" , // dl url
491
482
" file.signed" , // file name
492
483
" HASH1234=" , // checksum
493
- " false" , // needs admin
494
484
" 123" ), // size
495
485
-1 ,
496
486
false , // ping_only
@@ -511,7 +501,6 @@ TEST(OmahaRequestActionTest, ParseIntTest) {
511
501
" thecodebase/" , // dl url
512
502
" file.signed" , // file name
513
503
" HASH1234=" , // checksum
514
- " false" , // needs admin
515
504
// overflows int32:
516
505
" 123123123123123" ), // size
517
506
-1 ,
0 commit comments