Index: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java |
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java |
index 35d5ddd23a50f48e1934736106bb3fd5089cb6ca..18b7a2ef8bed4b7522c683d04f64fee3a7445f48 100644 |
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java |
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java |
@@ -56,7 +56,7 @@ public class AwContentsClientGetVideoLoadingProgressViewTest extends AndroidWebV |
new FullScreenVideoTestAwContentsClient(getActivity()) { |
@Override |
protected View getVideoLoadingProgressView() { |
- View view = new View(getInstrumentation().getContext()); |
+ View view = new View(getInstrumentation().getTargetContext()); |
view.addOnAttachStateChangeListener( |
AwContentsClientGetVideoLoadingProgressViewTest.this); |
return view; |
@@ -66,7 +66,8 @@ public class AwContentsClientGetVideoLoadingProgressViewTest extends AndroidWebV |
createAwTestContainerViewOnMainSync(contentsClient); |
final AwContents awContents = testContainerView.getAwContents(); |
enableJavaScriptOnUiThread(awContents); |
- VideoTestWebServer webServer = new VideoTestWebServer(getInstrumentation().getContext()); |
+ VideoTestWebServer webServer = new VideoTestWebServer( |
+ getInstrumentation().getTargetContext()); |
try { |
loadUrlSync(awContents, contentsClient.getOnPageFinishedHelper(), |
webServer.getFullScreenVideoTestURL()); |