| 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.crash; | 5 package org.chromium.chrome.browser.crash; |
| 6 | 6 |
| 7 import android.content.ComponentName; | 7 import android.content.ComponentName; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.Intent; | 9 import android.content.Intent; |
| 10 import android.test.suitebuilder.annotation.MediumTest; | 10 import android.test.suitebuilder.annotation.MediumTest; |
| 11 | 11 |
| 12 import org.chromium.base.test.util.AdvancedMockContext; | 12 import org.chromium.base.test.util.AdvancedMockContext; |
| 13 import org.chromium.components.minidump_uploader.CrashFileManager; |
| 14 import org.chromium.components.minidump_uploader.CrashTestCase; |
| 13 | 15 |
| 14 import java.io.BufferedReader; | 16 import java.io.BufferedReader; |
| 15 import java.io.File; | 17 import java.io.File; |
| 16 import java.io.FileReader; | 18 import java.io.FileReader; |
| 17 import java.io.IOException; | 19 import java.io.IOException; |
| 18 import java.util.ArrayList; | 20 import java.util.ArrayList; |
| 19 import java.util.List; | 21 import java.util.List; |
| 20 import java.util.concurrent.atomic.AtomicInteger; | 22 import java.util.concurrent.atomic.AtomicInteger; |
| 21 | 23 |
| 22 /** | 24 /** |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 while ((line = input.readLine()) != null) { | 89 while ((line = input.readLine()) != null) { |
| 88 sb.append(line); | 90 sb.append(line); |
| 89 } | 91 } |
| 90 input.close(); | 92 input.close(); |
| 91 assertEquals("Content not matched!", content, sb.toString()); | 93 assertEquals("Content not matched!", content, sb.toString()); |
| 92 } catch (Exception e) { | 94 } catch (Exception e) { |
| 93 fail(e.toString()); | 95 fail(e.toString()); |
| 94 } | 96 } |
| 95 } | 97 } |
| 96 } | 98 } |
| OLD | NEW |