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

Issue 14263006: [Android] Refactor md5_check + add tests (Closed)

Created:
7 years, 8 months ago by cjhopman
Modified:
7 years, 8 months ago
Reviewers:
nilesh
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@java_toc
Visibility:
Public.

Description

[Android] Refactor md5_check + add tests This adds a function md5_check.CallAndRecordIfStale that makes the common (and currently only) use of Md5Checker much simpler (i.e just call this function). All the users of md5_check are updated to use this function, and everything else in md5_check is no longer part of the public API. Also, adds tests for the md5_check module. These are only run manually currently. BUG=158821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194377

Patch Set 1 #

Total comments: 10

Patch Set 2 : Assert record_path.endswith('.stamp') #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -66 lines) Patch
M build/android/gyp/apk_install.py View 1 1 chunk +6 lines, -7 lines 0 comments Download
M build/android/gyp/create_device_library_links.py View 1 1 chunk +7 lines, -5 lines 0 comments Download
M build/android/gyp/dex.py View 1 1 chunk +8 lines, -8 lines 0 comments Download
M build/android/gyp/jar.py View 1 1 chunk +8 lines, -9 lines 0 comments Download
M build/android/gyp/jar_toc.py View 1 1 chunk +7 lines, -7 lines 0 comments Download
M build/android/gyp/javac.py View 1 2 chunks +9 lines, -7 lines 0 comments Download
M build/android/gyp/push_libraries.py View 1 1 chunk +8 lines, -6 lines 0 comments Download
M build/android/gyp/util/md5_check.py View 1 2 chunks +38 lines, -17 lines 0 comments Download
A build/android/gyp/util/md5_check_test.py View 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
cjhopman
7 years, 8 months ago (2013-04-15 16:00:20 UTC) #1
nilesh
LGTM with nits https://codereview.chromium.org/14263006/diff/1/build/android/gyp/apk_install.py File build/android/gyp/apk_install.py (right): https://codereview.chromium.org/14263006/diff/1/build/android/gyp/apk_install.py#newcode41 build/android/gyp/apk_install.py:41: record_path = '%s.%s.md5' % (options.apk_path, serial_number) ...
7 years, 8 months ago (2013-04-15 18:28:42 UTC) #2
cjhopman
https://codereview.chromium.org/14263006/diff/1/build/android/gyp/apk_install.py File build/android/gyp/apk_install.py (right): https://codereview.chromium.org/14263006/diff/1/build/android/gyp/apk_install.py#newcode41 build/android/gyp/apk_install.py:41: record_path = '%s.%s.md5' % (options.apk_path, serial_number) On 2013/04/15 18:28:42, ...
7 years, 8 months ago (2013-04-15 18:32:35 UTC) #3
cjhopman
7 years, 8 months ago (2013-04-16 17:06:39 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r194377 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698