| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.chrome.browser.webapps; | 5 package org.chromium.chrome.browser.webapps; |
| 6 | 6 |
| 7 import android.content.Intent; | 7 import android.content.Intent; |
| 8 import android.support.test.filters.SmallTest; |
| 8 import android.test.InstrumentationTestCase; | 9 import android.test.InstrumentationTestCase; |
| 9 import android.test.suitebuilder.annotation.SmallTest; | |
| 10 | 10 |
| 11 import org.chromium.base.test.util.Feature; | 11 import org.chromium.base.test.util.Feature; |
| 12 import org.chromium.blink_public.platform.WebDisplayMode; | 12 import org.chromium.blink_public.platform.WebDisplayMode; |
| 13 import org.chromium.chrome.browser.ShortcutHelper; | 13 import org.chromium.chrome.browser.ShortcutHelper; |
| 14 import org.chromium.chrome.browser.ShortcutSource; | 14 import org.chromium.chrome.browser.ShortcutSource; |
| 15 import org.chromium.content_public.common.ScreenOrientationValues; | 15 import org.chromium.content_public.common.ScreenOrientationValues; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Tests the WebappInfo class's ability to parse various URLs. | 18 * Tests the WebappInfo class's ability to parse various URLs. |
| 19 */ | 19 */ |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 * Creates intent with url and id. If the url or id are not set WebappInfo#c
reate() returns | 285 * Creates intent with url and id. If the url or id are not set WebappInfo#c
reate() returns |
| 286 * null. | 286 * null. |
| 287 */ | 287 */ |
| 288 private Intent createIntentWithUrlAndId() { | 288 private Intent createIntentWithUrlAndId() { |
| 289 Intent intent = new Intent(); | 289 Intent intent = new Intent(); |
| 290 intent.putExtra(ShortcutHelper.EXTRA_ID, "web app id"); | 290 intent.putExtra(ShortcutHelper.EXTRA_ID, "web app id"); |
| 291 intent.putExtra(ShortcutHelper.EXTRA_URL, "about:blank"); | 291 intent.putExtra(ShortcutHelper.EXTRA_URL, "about:blank"); |
| 292 return intent; | 292 return intent; |
| 293 } | 293 } |
| 294 } | 294 } |
| OLD | NEW |