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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadInfoTest.java

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved race condition Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698