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

Side by Side Diff: tools/android/md5sum/md5sum.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « tools/android/heap_profiler/heap_profiler_unittest.cc ('k') | tools/android/memdump/memdump.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 // Md5sum implementation for Android. This version handles files as well as 5 // Md5sum implementation for Android. This version handles files as well as
6 // directories. Its output is sorted by file path. 6 // directories. Its output is sorted by file path.
7 7
8 #include <stddef.h>
9
8 #include <fstream> 10 #include <fstream>
9 #include <iostream> 11 #include <iostream>
10 #include <set> 12 #include <set>
11 #include <string> 13 #include <string>
12 14
13 #include "base/files/file_enumerator.h" 15 #include "base/files/file_enumerator.h"
14 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
16 #include "base/logging.h" 18 #include "base/logging.h"
17 #include "base/md5.h" 19 #include "base/md5.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 for (std::set<std::string>::const_iterator it = files.begin(); 81 for (std::set<std::string>::const_iterator it = files.begin();
80 it != files.end(); ++it) { 82 it != files.end(); ++it) {
81 if (!MD5Sum(it->c_str(), &digest)) { 83 if (!MD5Sum(it->c_str(), &digest)) {
82 failed = true; 84 failed = true;
83 } else { 85 } else {
84 std::cout << digest << " " << *it << std::endl; 86 std::cout << digest << " " << *it << std::endl;
85 } 87 }
86 } 88 }
87 return failed; 89 return failed;
88 } 90 }
OLDNEW
« no previous file with comments | « tools/android/heap_profiler/heap_profiler_unittest.cc ('k') | tools/android/memdump/memdump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698