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

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

Issue 2974163002: Fix the stack script issue when symbolizing tombstones. (Closed)
Patch Set: Created 3 years, 5 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
« build/android/test_runner.py ('K') | « build/android/test_runner.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.support.test.filters.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.junit.Rule; 9 import org.junit.Rule;
10 import org.junit.Test; 10 import org.junit.Test;
11 import org.junit.runner.RunWith; 11 import org.junit.runner.RunWith;
12 12
13 import org.chromium.base.test.util.CommandLineFlags; 13 import org.chromium.base.test.util.CommandLineFlags;
14 import org.chromium.base.test.util.DisabledTest;
15 import org.chromium.chrome.test.ChromeActivityTestRule; 14 import org.chromium.chrome.test.ChromeActivityTestRule;
16 import org.chromium.chrome.test.ChromeJUnit4ClassRunner; 15 import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
17 16
17 // import org.chromium.base.test.util.DisabledTest;
mikecase (-- gone --) 2017/07/10 22:51:33 Did you mean to include this change?
BigBossZhiling 2017/07/11 08:02:58 Yes. So that the trybot would run into a crashed t
18
18 /** 19 /**
19 * The class contains a testcase that intentionally crashes. 20 * The class contains a testcase that intentionally crashes.
20 */ 21 */
21 @RunWith(ChromeJUnit4ClassRunner.class) 22 @RunWith(ChromeJUnit4ClassRunner.class)
22 @CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE, 23 @CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE,
23 ChromeActivityTestRule.DISABLE_NETWORK_PREDICTION_FLAG}) 24 ChromeActivityTestRule.DISABLE_NETWORK_PREDICTION_FLAG})
24 public class CrashTest { 25 public class CrashTest {
25 @Rule 26 @Rule
26 public ChromeActivityTestRule<ChromeActivity> mActivityTestRule = 27 public ChromeActivityTestRule<ChromeActivity> mActivityTestRule =
27 new ChromeActivityTestRule<>(ChromeActivity.class); 28 new ChromeActivityTestRule<>(ChromeActivity.class);
28 29
29 /** 30 /**
30 * Intentionally crashing the test. The testcase should be 31 * Intentionally crashing the test. The testcase should be
31 * disabled the majority of time. 32 * disabled the majority of time.
32 */ 33 */
33 @Test 34 @Test
34 @DisabledTest
35 @SmallTest 35 @SmallTest
36 public void testIntentionalBrowserCrash() throws Exception { 36 public void testIntentionalBrowserCrash() throws Exception {
37 mActivityTestRule.startMainActivityFromLauncher(); 37 mActivityTestRule.startMainActivityFromLauncher();
38 mActivityTestRule.loadUrl("chrome://inducebrowsercrashforrealz"); 38 mActivityTestRule.loadUrl("chrome://inducebrowsercrashforrealz");
39 } 39 }
40 } 40 }
OLDNEW
« build/android/test_runner.py ('K') | « build/android/test_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698