| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 package org.chromium.content.browser; | 5 package org.chromium.chrome.browser.download; |
| 6 | 6 |
| 7 import android.test.InstrumentationTestCase; | 7 import android.test.InstrumentationTestCase; |
| 8 import android.test.suitebuilder.annotation.SmallTest; | 8 import android.test.suitebuilder.annotation.SmallTest; |
| 9 | 9 |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.content.browser.DownloadInfo.Builder; | 11 import org.chromium.chrome.browser.download.DownloadInfo.Builder; |
| 12 | 12 |
| 13 import java.lang.reflect.InvocationTargetException; | 13 import java.lang.reflect.InvocationTargetException; |
| 14 import java.lang.reflect.Method; | 14 import java.lang.reflect.Method; |
| 15 import java.util.HashMap; | 15 import java.util.HashMap; |
| 16 import java.util.Map; | 16 import java.util.Map; |
| 17 import java.util.Random; | 17 import java.util.Random; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Tests for (@link DownloadInfo}. | 20 * Tests for (@link DownloadInfo}. |
| 21 */ | 21 */ |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 Object returnValue1 = invokeMethod(getter, downloadInfo); | 214 Object returnValue1 = invokeMethod(getter, downloadInfo); |
| 215 Object returnValue2 = invokeMethod(getter, newDownloadInfo); | 215 Object returnValue2 = invokeMethod(getter, newDownloadInfo); |
| 216 assertEquals(signature.toString(), returnValue1, returnValue2); | 216 assertEquals(signature.toString(), returnValue1, returnValue2); |
| 217 } catch (Exception e) { | 217 } catch (Exception e) { |
| 218 fail("Exception while getting value from getter. Signature: " +
signature | 218 fail("Exception while getting value from getter. Signature: " +
signature |
| 219 + " value:" + valuesForBuilder.get(signature) + ":" + e)
; | 219 + " value:" + valuesForBuilder.get(signature) + ":" + e)
; |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 } | 223 } |
| OLD | NEW |