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

Side by Side Diff: blimp/client/app/android/javatests/src/org/chromium/blimp/app/BlimpNativeInstrumentationTestCase.java

Issue 2493333002: Move Java Blimp shell code to app subpackage (Closed)
Patch Set: Merge branch 'refs/heads/master' into blimp-shell-integration Created 4 years, 1 month 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
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.blimp; 5 package org.chromium.blimp.app;
6 6
7 import android.test.InstrumentationTestCase; 7 import android.test.InstrumentationTestCase;
8 8
9 import org.chromium.base.ThreadUtils; 9 import org.chromium.base.ThreadUtils;
10 import org.chromium.base.library_loader.ProcessInitException; 10 import org.chromium.base.library_loader.ProcessInitException;
11 11
12 import java.util.concurrent.Semaphore; 12 import java.util.concurrent.Semaphore;
13 13
14 /** 14 /**
15 * Base class for loading native library in tests. The setUp() methods must be i nvoked, and 15 * Base class for loading native library in tests. The setUp() methods must be i nvoked, and
(...skipping 27 matching lines...) Expand all
43 * Blocks until the native library startup is complete. If the startup dit n ot complete 43 * Blocks until the native library startup is complete. If the startup dit n ot complete
44 * successfully, this method throws a RuntimeException, otherwise it does no thing. 44 * successfully, this method throws a RuntimeException, otherwise it does no thing.
45 * This method should be called in the start of any test method that require s native to be 45 * This method should be called in the start of any test method that require s native to be
46 * successfully loaded. 46 * successfully loaded.
47 */ 47 */
48 protected final void waitUntilNativeIsReady() throws InterruptedException { 48 protected final void waitUntilNativeIsReady() throws InterruptedException {
49 mNativeReadySemaphore.acquire(); 49 mNativeReadySemaphore.acquire();
50 if (!mSuccess) throw new RuntimeException("Native startup failed"); 50 if (!mSuccess) throw new RuntimeException("Native startup failed");
51 } 51 }
52 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698