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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java

Issue 110963003: Fixing all Java import ordering issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ReBaSe Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 junit.framework.Assert; 7 import junit.framework.Assert;
8 8
9 import org.chromium.content.browser.LoadUrlParams;
10
11 /** 9 /**
12 * Common functionality for testing the Java Bridge. 10 * Common functionality for testing the Java Bridge.
13 */ 11 */
14 public class JavaBridgeTestBase extends ContentViewTestBase { 12 public class JavaBridgeTestBase extends ContentViewTestBase {
15 protected class Controller { 13 protected class Controller {
16 private boolean mIsResultReady; 14 private boolean mIsResultReady;
17 15
18 protected synchronized void notifyResultIsReady() { 16 protected synchronized void notifyResultIsReady() {
19 mIsResultReady = true; 17 mIsResultReady = true;
20 notify(); 18 notify();
(...skipping 21 matching lines...) Expand all
42 // expression evaluated is not 'undefined', this value is 40 // expression evaluated is not 'undefined', this value is
43 // converted to a string and used as the new document for the 41 // converted to a string and used as the new document for the
44 // frame. We don't want this behaviour, so wrap the script in 42 // frame. We don't want this behaviour, so wrap the script in
45 // an anonymous function. 43 // an anonymous function.
46 getContentView().loadUrl(new LoadUrlParams( 44 getContentView().loadUrl(new LoadUrlParams(
47 "javascript:(function() { " + script + " })()")); 45 "javascript:(function() { " + script + " })()"));
48 } 46 }
49 }); 47 });
50 } 48 }
51 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698