OLD | NEW |
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.content.browser; |
6 | 6 |
7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; | 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; |
8 | 8 |
9 import android.os.SystemClock; | 9 import android.os.SystemClock; |
10 import android.test.suitebuilder.annotation.MediumTest; | 10 import android.test.suitebuilder.annotation.MediumTest; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 while (tracingController.isTracing()) { | 54 while (tracingController.isTracing()) { |
55 if (SystemClock.uptimeMillis() > startTime + TIMEOUT_MILLIS) { | 55 if (SystemClock.uptimeMillis() > startTime + TIMEOUT_MILLIS) { |
56 fail("Timed out waiting for tracing to stop."); | 56 fail("Timed out waiting for tracing to stop."); |
57 } | 57 } |
58 Thread.sleep(1000); | 58 Thread.sleep(1000); |
59 } | 59 } |
60 | 60 |
61 // It says it stopped, so it should have written the output file. | 61 // It says it stopped, so it should have written the output file. |
62 assertTrue(file.exists()); | 62 assertTrue(file.exists()); |
63 assertTrue(file.delete()); | 63 assertTrue(file.delete()); |
| 64 tracingController.destroy(); |
64 } | 65 } |
65 } | 66 } |
OLD | NEW |