diff options
author | Steve Block <steveblock@google.com> | 2012-06-11 10:32:35 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-11 10:32:35 -0700 |
commit | ca2ef2cbb1cba81b86ae19401b4ec38854a5a354 (patch) | |
tree | 9c80dd1d413483703bf33d5ad1cc425b1b5ee8c4 /tests | |
parent | bb68d6f893208b3fb5b4717a0f173f7f4eb2d454 (diff) | |
parent | b56ed30666596e70b577c9b937362e246f229a11 (diff) | |
download | frameworks_base-ca2ef2cbb1cba81b86ae19401b4ec38854a5a354.zip frameworks_base-ca2ef2cbb1cba81b86ae19401b4ec38854a5a354.tar.gz frameworks_base-ca2ef2cbb1cba81b86ae19401b4ec38854a5a354.tar.bz2 |
Merge "Fix style for Geolocation mock mechanism"
Diffstat (limited to 'tests')
3 files changed, 7 insertions, 13 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 2b58f14..42d6457 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -541,9 +541,8 @@ public class TestShellActivity extends Activity implements LayoutTestController @Override public void setMockGeolocationPosition(double latitude, double longitude, double accuracy) { - WebViewClassic.fromWebView(mWebView).setMockGeolocationPosition(latitude, - longitude, - accuracy); + WebViewClassic.fromWebView(mWebView).setMockGeolocationPosition(latitude, longitude, + accuracy); } @Override diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestController.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestController.java index bb3bf62..c9c35ce 100644 --- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestController.java +++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestController.java @@ -80,20 +80,16 @@ public class LayoutTestController { quota); } - public void setMockGeolocationPosition(double latitude, - double longitude, - double accuracy) { + public void setMockGeolocationPosition(double latitude, double longitude, double accuracy) { Log.i(LOG_TAG, "setMockGeolocationPosition(): " + "latitude=" + latitude + " longitude=" + longitude + " accuracy=" + accuracy); - mLayoutTestsExecutor.setMockGeolocationPosition(latitude, - longitude, - accuracy); + mLayoutTestsExecutor.setMockGeolocationPosition(latitude, longitude, accuracy); } public void setMockGeolocationError(int code, String message) { Log.i(LOG_TAG, "setMockGeolocationError(): " + "code=" + code + " message=" + message); mLayoutTestsExecutor.setMockGeolocationError(code, message); - } + } public void setGeolocationPermission(boolean allow) { mLayoutTestsExecutor.setGeolocationPermission(allow); diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestsExecutor.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestsExecutor.java index b2fbfd5..25ac700 100644 --- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestsExecutor.java +++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/LayoutTestsExecutor.java @@ -694,9 +694,8 @@ public class LayoutTestsExecutor extends Activity { } public void setMockGeolocationPosition(double latitude, double longitude, double accuracy) { - WebViewClassic.fromWebView(mCurrentWebView).setMockGeolocationPosition(latitude, - longitude, - accuracy); + WebViewClassic.fromWebView(mCurrentWebView).setMockGeolocationPosition(latitude, longitude, + accuracy); } public void setMockGeolocationError(int code, String message) { |