Fix the typo

BUG=

Review URL: https://chromiumcodereview.appspot.com/23458013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222119 0039d316-1c4b-4281-b951-d872f2087c98
parent 08982a8a
...@@ -39,7 +39,7 @@ public class AwContentsClientShouldInterceptRequestTest extends AwTestBase { ...@@ -39,7 +39,7 @@ public class AwContentsClientShouldInterceptRequestTest extends AwTestBase {
public static class ShouldInterceptRequestHelper extends CallbackHelper { public static class ShouldInterceptRequestHelper extends CallbackHelper {
private List<String> mShouldInterceptRequestUrls = new ArrayList<String>(); private List<String> mShouldInterceptRequestUrls = new ArrayList<String>();
private ConcurrentHashMap<String, InterceptedRequestData> mReturnValusByUrls private ConcurrentHashMap<String, InterceptedRequestData> mReturnValuesByUrls
= new ConcurrentHashMap<String, InterceptedRequestData>(); = new ConcurrentHashMap<String, InterceptedRequestData>();
// This is read from the IO thread, so needs to be marked volatile. // This is read from the IO thread, so needs to be marked volatile.
private volatile InterceptedRequestData mShouldInterceptRequestReturnValue = null; private volatile InterceptedRequestData mShouldInterceptRequestReturnValue = null;
...@@ -47,14 +47,14 @@ public class AwContentsClientShouldInterceptRequestTest extends AwTestBase { ...@@ -47,14 +47,14 @@ public class AwContentsClientShouldInterceptRequestTest extends AwTestBase {
mShouldInterceptRequestReturnValue = value; mShouldInterceptRequestReturnValue = value;
} }
void setReturnValueForUrl(String url, InterceptedRequestData value) { void setReturnValueForUrl(String url, InterceptedRequestData value) {
mReturnValusByUrls.put(url, value); mReturnValuesByUrls.put(url, value);
} }
public List<String> getUrls() { public List<String> getUrls() {
assert getCallCount() > 0; assert getCallCount() > 0;
return mShouldInterceptRequestUrls; return mShouldInterceptRequestUrls;
} }
public InterceptedRequestData getReturnValue(String url) { public InterceptedRequestData getReturnValue(String url) {
InterceptedRequestData value = mReturnValusByUrls.get(url); InterceptedRequestData value = mReturnValuesByUrls.get(url);
if (value != null) return value; if (value != null) return value;
return mShouldInterceptRequestReturnValue; return mShouldInterceptRequestReturnValue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment