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

Unified Diff: build/android/gyp/util/md5_check_test.py

Issue 14254005: [Android] Make gyp/apk_install.py resilient to user actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/gyp/util/md5_check.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/util/md5_check_test.py
diff --git a/build/android/gyp/util/md5_check_test.py b/build/android/gyp/util/md5_check_test.py
index a18942e292585b0a12135abb00cc4cf6cdb7e409..4a3ee6346bb72e5b4a4a31d0fd078b612b6b1f1a 100644
--- a/build/android/gyp/util/md5_check_test.py
+++ b/build/android/gyp/util/md5_check_test.py
@@ -23,7 +23,7 @@ class TestMd5Check(unittest.TestCase):
record_path = tempfile.NamedTemporaryFile(suffix='.stamp')
- def CheckCallAndRecord(should_call, message):
+ def CheckCallAndRecord(should_call, message, force=False):
self.called = False
def MarkCalled():
self.called = True
@@ -31,11 +31,13 @@ class TestMd5Check(unittest.TestCase):
MarkCalled,
record_path=record_path.name,
input_paths=input_files,
- input_strings=input_strings)
+ input_strings=input_strings,
+ force=force)
self.failUnlessEqual(should_call, self.called, message)
CheckCallAndRecord(True, 'should call when record doesn\'t exist')
CheckCallAndRecord(False, 'should not call when nothing changed')
+ CheckCallAndRecord(True, force=True, message='should call when forced')
input_file1.write('some more input')
input_file1.flush()
« no previous file with comments | « build/android/gyp/util/md5_check.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698