Home | History | Annotate | Download | only in update_engine

Lines Matching defs:in

5 // you may not use this file except in compliance with the License.
10 // Unless required by applicable law or agreed to in writing, software
55 bool DoTest(const OmahaResponse& in,
94 const OmahaResponse& in,
102 feeder_action.set_obj(in);
103 if (in.update_exists && in.version != kBadVersion) {
105 SetString(kPrefsUpdateCheckResponseHash, in.hash))
114 string current_url = in.payload_urls.size() ? in.payload_urls[0] : "";
144 OmahaResponse in;
145 in.update_exists = true;
146 in.version = "a.b.c.d";
147 in.payload_urls.push_back("http://foo/the_update_a.b.c.d.tgz");
148 in.more_info_url = "http://more/info";
149 in.hash = "HASH+";
150 in.size = 12;
151 in.prompt = false;
152 in.deadline = "20101020";
154 EXPECT_TRUE(DoTest(in, test_deadline_file, &install_plan));
155 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
156 EXPECT_EQ(in.hash, install_plan.payload_hash);
166 EXPECT_EQ(in.version, install_plan.version);
169 OmahaResponse in;
170 in.update_exists = true;
171 in.version = "a.b.c.d";
172 in.payload_urls.push_back("http://foo/the_update_a.b.c.d.tgz");
173 in.more_info_url = "http://more/info";
174 in.hash = "HASHj+";
175 in.size = 12;
176 in.prompt = true;
180 EXPECT_TRUE(DoTest(in, test_deadline_file, &install_plan));
181 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
182 EXPECT_EQ(in.hash, install_plan.payload_hash);
187 EXPECT_EQ(in.version, install_plan.version);
190 OmahaResponse in;
191 in.update_exists = true;
192 in.version = "a.b.c.d";
193 in.payload_urls.push_back(kLongName);
194 in.more_info_url = "http://more/info";
195 in.hash = "HASHj+";
196 in.size = 12;
197 in.prompt = true;
198 in.deadline = "some-deadline";
201 EXPECT_TRUE(DoTest(in, test_deadline_file, &install_plan));
202 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
203 EXPECT_EQ(in.hash, install_plan.payload_hash);
208 EXPECT_EQ(in.version, install_plan.version);
213 OmahaResponse in;
214 in.update_exists = false;
216 EXPECT_FALSE(DoTest(in, "", &install_plan));
221 OmahaResponse in;
222 in.update_exists = true;
223 in.version = "a.b.c.d";
224 in.payload_urls.push_back("http://test.should/need/hash.checks.signed");
225 in.more_info_url = "http://more/info";
226 in.hash = "HASHj+";
227 in.size = 12;
233 EXPECT_TRUE(DoTest(in, "", &install_plan));
234 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
235 EXPECT_EQ(in.hash, install_plan.payload_hash);
237 EXPECT_EQ(in.version, install_plan.version);
241 OmahaResponse in;
242 in.update_exists = true;
243 in.version = "a.b.c.d";
244 in.payload_urls.push_back("http://url.normally/needs/hash.checks.signed");
245 in.more_info_url = "http://more/info";
246 in.hash = "HASHj+";
247 in.size = 12;
252 EXPECT_TRUE(DoTest(in, "", &install_plan));
253 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
254 EXPECT_EQ(in.hash, install_plan.payload_hash);
256 EXPECT_EQ(in.version, install_plan.version);
262 OmahaResponse in;
263 in.update_exists = true;
264 in.version = "a.b.c.d";
265 in.payload_urls.push_back("http://url.normally/needs/hash.checks.signed");
266 in.more_info_url = "http://more/info";
267 in.hash = "HASHj+";
268 in.size = 12;
274 EXPECT_TRUE(DoTest(in, "", &install_plan));
275 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
276 EXPECT_EQ(in.hash, install_plan.payload_hash);
278 EXPECT_EQ(in.version, install_plan.version);
282 OmahaResponse in;
283 in.update_exists = true;
284 in.version = "a.b.c.d";
285 in.payload_urls.push_back("https://test.should.not/need/hash.checks.signed");
286 in.more_info_url = "http://more/info";
287 in.hash = "HASHj+";
288 in.size = 12;
293 EXPECT_TRUE(DoTest(in, "", &install_plan));
294 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
295 EXPECT_EQ(in.hash, install_plan.payload_hash);
297 EXPECT_EQ(in.version, install_plan.version);
301 OmahaResponse in;
302 in.update_exists = true;
303 in.version = "a.b.c.d";
304 in.payload_urls.push_back("http://test.should.still/need/hash.checks");
305 in.payload_urls.push_back("https://test.should.still/need/hash.checks");
306 in.more_info_url = "http://more/info";
307 in.hash = "HASHj+";
308 in.size = 12;
313 EXPECT_TRUE(DoTest(in, "", &install_plan));
314 EXPECT_EQ(in.payload_urls[0], install_plan.download_url);
315 EXPECT_EQ(in.hash, install_plan.payload_hash);
317 EXPECT_EQ(in.version, install_plan.version);
321 OmahaResponse in;
322 in.update_exists = true;
323 in.version = "a.b.c.d";
324 in.payload_urls.push_back("https://MoreStableChannelTest");
325 in.more_info_url = "http://more/info";
326 in.hash = "HASHjk";
327 in.size = 15;
356 EXPECT_TRUE(DoTest(in, "", &install_plan));
363 OmahaResponse in;
364 in.update_exists = true;
365 in.version = "a.b.c.d";
366 in.payload_urls.push_back("https://LessStableChannelTest");
367 in.more_info_url = "http://more/info";
368 in.hash = "HASHjk";
369 in.size = 15;
398 EXPECT_TRUE(DoTest(in, "", &install_plan));
405 OmahaResponse in;
406 in.update_exists = true;
407 in.version = "a.b.c.d";
408 in.payload_urls.push_back("https://would.not/cause/hash/checks");
409 in.more_info_url = "http://more/info";
410 in.hash = "HASHj+";
411 in.size = 12;
430 EXPECT_TRUE(DoTest(in, "", &install_plan));
431 EXPECT_EQ(in.hash, install_plan.payload_hash);