Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: omaha_request_action.cc

Issue 3419018: AU: Switch from SHA-1 to SHA-256 hash. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: update unit test Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « omaha_hash_calculator_unittest.cc ('k') | omaha_request_action_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "update_engine/omaha_request_action.h" 5 #include "update_engine/omaha_request_action.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 8
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 // In best-effort fashion, fetch the rest of the expected attributes 399 // In best-effort fashion, fetch the rest of the expected attributes
400 // from the updatecheck node, then return the object 400 // from the updatecheck node, then return the object
401 output_object.update_exists = true; 401 output_object.update_exists = true;
402 completer.set_code(kActionCodeSuccess); 402 completer.set_code(kActionCodeSuccess);
403 403
404 output_object.display_version = 404 output_object.display_version =
405 XmlGetProperty(updatecheck_node, "DisplayVersion"); 405 XmlGetProperty(updatecheck_node, "DisplayVersion");
406 output_object.codebase = XmlGetProperty(updatecheck_node, "codebase"); 406 output_object.codebase = XmlGetProperty(updatecheck_node, "codebase");
407 output_object.more_info_url = XmlGetProperty(updatecheck_node, "MoreInfo"); 407 output_object.more_info_url = XmlGetProperty(updatecheck_node, "MoreInfo");
408 output_object.hash = XmlGetProperty(updatecheck_node, "hash"); 408 output_object.hash = XmlGetProperty(updatecheck_node, "sha256");
409 output_object.size = ParseInt(XmlGetProperty(updatecheck_node, "size")); 409 output_object.size = ParseInt(XmlGetProperty(updatecheck_node, "size"));
410 output_object.needs_admin = 410 output_object.needs_admin =
411 XmlGetProperty(updatecheck_node, "needsadmin") == "true"; 411 XmlGetProperty(updatecheck_node, "needsadmin") == "true";
412 output_object.prompt = XmlGetProperty(updatecheck_node, "Prompt") == "true"; 412 output_object.prompt = XmlGetProperty(updatecheck_node, "Prompt") == "true";
413 output_object.is_delta = 413 output_object.is_delta =
414 XmlGetProperty(updatecheck_node, "IsDelta") == "true"; 414 XmlGetProperty(updatecheck_node, "IsDelta") == "true";
415 SetOutputObject(output_object); 415 SetOutputObject(output_object);
416 } 416 }
417 417
418 }; // namespace chromeos_update_engine 418 }; // namespace chromeos_update_engine
OLDNEW
« no previous file with comments | « omaha_hash_calculator_unittest.cc ('k') | omaha_request_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698