| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Tests for jni_generator.py. | 6 """Tests for jni_generator.py. |
| 7 | 7 |
| 8 This test suite contains various tests for the JNI generator. | 8 This test suite contains various tests for the JNI generator. |
| 9 It exercises the low-level parser all the way up to the | 9 It exercises the low-level parser all the way up to the |
| 10 code generator and ensures the output matches a golden | 10 code generator and ensures the output matches a golden |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 import android.os.Bundle; | 889 import android.os.Bundle; |
| 890 import android.os.IBinder; | 890 import android.os.IBinder; |
| 891 import android.os.ParcelFileDescriptor; | 891 import android.os.ParcelFileDescriptor; |
| 892 import android.os.Process; | 892 import android.os.Process; |
| 893 import android.os.RemoteException; | 893 import android.os.RemoteException; |
| 894 import android.util.Log; | 894 import android.util.Log; |
| 895 import android.view.Surface; | 895 import android.view.Surface; |
| 896 | 896 |
| 897 import java.util.ArrayList; | 897 import java.util.ArrayList; |
| 898 | 898 |
| 899 import org.chromium.base.CalledByNative; | 899 import org.chromium.base.annotations.CalledByNative; |
| 900 import org.chromium.base.JNINamespace; | 900 import org.chromium.base.annotations.JNINamespace; |
| 901 import org.chromium.content.app.ContentMain; | 901 import org.chromium.content.app.ContentMain; |
| 902 import org.chromium.content.browser.SandboxedProcessConnection; | 902 import org.chromium.content.browser.SandboxedProcessConnection; |
| 903 import org.chromium.content.common.ISandboxedProcessCallback; | 903 import org.chromium.content.common.ISandboxedProcessCallback; |
| 904 import org.chromium.content.common.ISandboxedProcessService; | 904 import org.chromium.content.common.ISandboxedProcessService; |
| 905 import org.chromium.content.common.WillNotRaise.AnException; | 905 import org.chromium.content.common.WillNotRaise.AnException; |
| 906 import org.chromium.content.common.WillRaise.AnException; | 906 import org.chromium.content.common.WillRaise.AnException; |
| 907 | 907 |
| 908 import static org.chromium.Bar.Zoo; | 908 import static org.chromium.Bar.Zoo; |
| 909 | 909 |
| 910 class Foo { | 910 class Foo { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 test_result = unittest.main(argv=argv[0:1], exit=False) | 1143 test_result = unittest.main(argv=argv[0:1], exit=False) |
| 1144 | 1144 |
| 1145 if test_result.result.wasSuccessful() and options.stamp: | 1145 if test_result.result.wasSuccessful() and options.stamp: |
| 1146 TouchStamp(options.stamp) | 1146 TouchStamp(options.stamp) |
| 1147 | 1147 |
| 1148 return not test_result.result.wasSuccessful() | 1148 return not test_result.result.wasSuccessful() |
| 1149 | 1149 |
| 1150 | 1150 |
| 1151 if __name__ == '__main__': | 1151 if __name__ == '__main__': |
| 1152 sys.exit(main(sys.argv)) | 1152 sys.exit(main(sys.argv)) |
| OLD | NEW |