| 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
|
| old mode 100755
|
| new mode 100644
|
| index 8df8054c2b31b3e00b6a1e307844f87998003877..4f89fc2be83267733c4bd979a65f4243b057156a
|
| --- a/build/android/gyp/util/md5_check_test.py
|
| +++ b/build/android/gyp/util/md5_check_test.py
|
| @@ -1,4 +1,3 @@
|
| -#!/usr/bin/env python
|
| # Copyright 2013 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
| @@ -27,15 +26,7 @@
|
|
|
| record_path = tempfile.NamedTemporaryFile(suffix='.stamp')
|
|
|
| - def CheckCallAndRecord(should_call, message, force=False,
|
| - outputs_specified=False, outputs_missing=False):
|
| - output_paths = None
|
| - if outputs_specified:
|
| - output_file1 = tempfile.NamedTemporaryFile()
|
| - if outputs_missing:
|
| - output_file1.close() # Gets deleted on close().
|
| - output_paths = [output_file1.name]
|
| -
|
| + def CheckCallAndRecord(should_call, message, force=False):
|
| self.called = False
|
| def MarkCalled():
|
| self.called = True
|
| @@ -44,16 +35,11 @@
|
| record_path=record_path.name,
|
| input_paths=input_files,
|
| input_strings=input_strings,
|
| - output_paths=output_paths,
|
| 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(False, 'should not call when nothing changed2',
|
| - outputs_specified=True, outputs_missing=False)
|
| - CheckCallAndRecord(True, 'should call when output missing',
|
| - outputs_specified=True, outputs_missing=True)
|
| CheckCallAndRecord(True, force=True, message='should call when forced')
|
|
|
| input_file1.write('some more input')
|
|
|