OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.os.Build; | 9 import android.os.Build; |
| 10 import android.support.test.filters.MediumTest; |
10 import android.support.v7.app.AlertDialog; | 11 import android.support.v7.app.AlertDialog; |
11 import android.test.suitebuilder.annotation.MediumTest; | |
12 | 12 |
13 import org.chromium.base.test.util.CallbackHelper; | 13 import org.chromium.base.test.util.CallbackHelper; |
14 import org.chromium.base.test.util.CommandLineFlags; | 14 import org.chromium.base.test.util.CommandLineFlags; |
15 import org.chromium.base.test.util.Feature; | 15 import org.chromium.base.test.util.Feature; |
16 import org.chromium.chrome.browser.share.ShareHelper; | 16 import org.chromium.chrome.browser.share.ShareHelper; |
17 import org.chromium.chrome.browser.tab.EmptyTabObserver; | 17 import org.chromium.chrome.browser.tab.EmptyTabObserver; |
18 import org.chromium.chrome.browser.tab.Tab; | 18 import org.chromium.chrome.browser.tab.Tab; |
19 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 19 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
20 import org.chromium.net.test.EmbeddedTestServer; | 20 import org.chromium.net.test.EmbeddedTestServer; |
21 | 21 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 assertTrue(mReceivedIntent.hasExtra(Intent.EXTRA_TEXT)); | 282 assertTrue(mReceivedIntent.hasExtra(Intent.EXTRA_TEXT)); |
283 assertEquals("Test Text https://test.url/", | 283 assertEquals("Test Text https://test.url/", |
284 mReceivedIntent.getStringExtra(Intent.EXTRA_TEXT)); | 284 mReceivedIntent.getStringExtra(Intent.EXTRA_TEXT)); |
285 } | 285 } |
286 | 286 |
287 @Override | 287 @Override |
288 public void startMainActivity() throws InterruptedException { | 288 public void startMainActivity() throws InterruptedException { |
289 startMainActivityOnBlankPage(); | 289 startMainActivityOnBlankPage(); |
290 } | 290 } |
291 } | 291 } |
OLD | NEW |