Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

[Android] Add the bridge code to evaluate javascript code for test. #201

Open
wants to merge 120 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
539783d
Incrementing VERSION to 39.0.2171.1
Sep 27, 2014
9f14fa4
Incrementing VERSION to 39.0.2171.2
Sep 27, 2014
8dce388
Incrementing VERSION to 39.0.2171.3
Sep 30, 2014
c8d8751
Disable the scoped handle verifier (and close hook) for M-39
Sep 30, 2014
9212926
V4L2VEA: Expose H264 HW encoding as well, even if VP8 is available
hshi-chromium Sep 30, 2014
29f26d7
Updating XTBs based on .GRDs from branch 2171
Sep 30, 2014
ffd8084
Incrementing VERSION to 39.0.2171.4
Sep 30, 2014
263c6b5
Fix typo in host_installer.js
SergeyUlanov Oct 1, 2014
1531757
Disable package selection for multiple-selection file dialogs.
erikchen Oct 1, 2014
8bee47a
Files.app: Fix DirectoryModel#partialUpdate so that it does not ignor…
hirono-chromium Oct 1, 2014
be4b616
Incrementing VERSION to 39.0.2171.5
Oct 1, 2014
0f0240a
Files.app: Fix typo in onUnload_ handler.
hirono-chromium Oct 1, 2014
e30e701
Incrementing VERSION to 39.0.2171.6
Oct 1, 2014
5c7d92b
[Search] Adjust buttons in the first run experience.
Oct 1, 2014
06fa78c
Revert "Remove MediaSettingChanged infobar and show the latest state …
Oct 1, 2014
6975ef6
Use the correct v8 context for conversions when calling into the plug…
Oct 1, 2014
541bc0b
PPAPI: Never re-enter JavaScript for PostMessage.
davemichael Oct 1, 2014
b72bcd6
add UMA to record if a page has distilled data.
kuan8 Oct 1, 2014
fde783d
Incrementing VERSION to 39.0.2171.7
Oct 2, 2014
e464e51
Regenerate the long-lived test certificates to use SHA-256
sleevi Oct 2, 2014
c08f7ae
Detect SHA-1 when it appears in certificate chains
sleevi Oct 2, 2014
22aeaf9
Mark SHA-1 as deprecated
sleevi Oct 2, 2014
92f4c7f
Create a cache file before mounting zip file.
hirono-chromium Oct 2, 2014
5f3979e
Add kEnableWebRtcHWVp8Encoding to GPU process.
Oct 2, 2014
b294484
Don't report VAAPI failures for UMA for platforms that don't support it.
Oct 2, 2014
2657c9b
Revert "UMA: How often are different network error screens encountere…
Oct 2, 2014
d9c0b14
Merge "Fix ZoomController crash on kiosk launching."
Oct 2, 2014
af7baf9
[Merge] User Person/People instead of User/Users everywhere profile r…
notwaldorf Oct 2, 2014
a55ad58
[Merge] Remove unused User/Users strings from the profiles UI
notwaldorf Oct 2, 2014
ed64370
Merge to branch 2171 [Password Generation] Fix a bug where we always …
Oct 2, 2014
4636494
When switching the visible uber frame, also switch focus.
Oct 2, 2014
a634b36
MediaGalleriesCustomBindings: Ensure blobs aren't GC'd when getMetada…
Oct 2, 2014
a60eae3
Merge: Fix size and position of the virtual keyboard after a screen r…
Oct 2, 2014
a18671a
Revert "Remove deprecated extension notification from AppWindow"
krockot Oct 2, 2014
e64a602
Fix UMA stat for expiration of certificate memory decisions
joelweinberger Oct 2, 2014
523722a
Add a getSelectedText method to the PDF plugin.
Oct 2, 2014
3a45646
Incrementing VERSION to 39.0.2171.8
Oct 3, 2014
5941467
Android Chromoting: Don't fetch auth token if there's a fetch pending.
Oct 3, 2014
315383f
Fix refreshing the volume list when the volume is unmounted.
Oct 3, 2014
732b4cc
[Win] Only update HWND styles on SizeConstraintsChanged for normal wi…
Oct 3, 2014
43ca431
Correct condition and flag state for skipping PLAY request.
Oct 3, 2014
251bb22
[DevTools] Address crash by checking if Tab loaded successfully
Oct 3, 2014
d662f08
Avoid sending WINDOW_CONTENT_CHANGED more than once when frame info c…
Oct 3, 2014
cd61fd6
Disable cras_rms from system logs
stevenjb Oct 3, 2014
54faf82
Incrementing VERSION to 39.0.2171.9
Oct 4, 2014
bd64899
Don't close SRT bubble on deactivate.
Oct 4, 2014
1d3292c
Incrementing VERSION to 39.0.2171.10
Oct 5, 2014
f3ba9d8
Incrementing VERSION to 39.0.2171.11
Oct 6, 2014
e9edf27
Incrementing VERSION to 39.0.2171.12
Oct 6, 2014
4a1e0b4
Video Player: Not hide the video control bar on error
yoshikig Oct 6, 2014
df348c6
Fix native key code under X11.
Oct 6, 2014
73d7bd8
Move speex into the chrome repo
Oct 6, 2014
344c762
[Merge] [Win, Mac] Skip the profile editing fields from the tabbing l…
notwaldorf Oct 6, 2014
6bfb8bc
[Merge] [Mac] Redesign the new avatar button.
notwaldorf Oct 6, 2014
1eaa8e0
[Merge] [Linux] Add a People menu item to the global menu bar.
notwaldorf Oct 6, 2014
fffb5da
[Android] Fall back to unthemed resources when loading handle resources
Oct 6, 2014
188b5c4
[Merge] <webview>: Do not attempt to navigate unattached guest.
Oct 6, 2014
c7a954a
[Cherry-pick of http://crrev.com/297689 to M39 branch.]
SenorBlanco Oct 6, 2014
0d61547
[Search] Modify the First-run experience in Landscape mode
Oct 6, 2014
67934b0
Currently when WebRTC isn't visible (app is in background or tab is n…
Oct 6, 2014
3822079
Fix race in audio playback.
Oct 6, 2014
5ca67b1
Disable New Incognito Window command for guest profile.
Oct 6, 2014
89f3116
Incrementing VERSION to 39.0.2171.13
Oct 6, 2014
fd8eb28
Setting version to 39.0.2171.14
Oct 9, 2014
c9b610b
[Revert] Do not release capture when clicking to open select box on L…
Oct 9, 2014
3716572
Updating VERSION on branch only
Oct 9, 2014
4d02448
Incrementing VERSION to 39.0.2171.19
Oct 9, 2014
e7fb271
Publish DEPS for Chromium 39.0.2171.19
Oct 9, 2014
2882d6a
Add xwalk path to git ignore list
May 3, 2013
19eb756
.gitignore: Ignore ozone/.
Feb 27, 2014
93c1e4d
Also need to set aura::Window title
Jul 18, 2013
64918e1
Aura: fix the touch event doesn't work on Tizen 3.0 issue.
huningxin Jul 18, 2013
2b9e15e
[Tizen] Change Sandbox IPC process title.
ds-hwang Aug 30, 2013
82cefa6
[Android] Extend android install timeout to 5 minutes for testing
Sep 11, 2013
c77e245
[Android] When running android test, try killing adb if no devices found
Sep 11, 2013
ba15bd0
[Tizen] Change scrollbar animator
Nov 6, 2013
ec43d64
Introduce OS_TIZEN and set specific settings for Tizen platforms
kenchris Nov 7, 2013
4103e90
Add GetFieldID functing to jni_help in the content for XWalk.
junmin-zhu Nov 17, 2013
281c5ca
[Android] Allow use non Activity context to create ContentVideoView
Nov 22, 2013
593d1a7
[SysApps] Expose ffmpeg function signatures needed by Device Capabili…
Nov 26, 2013
a49fd9e
Fix default min-layout width and scrollbar appearence.
kenchris Dec 5, 2013
7150099
[Tizen] Use Tizen system location provider for geolocation subsystem
Dec 9, 2013
6709ea8
[Android] Use application context for shared pref's creation
Dec 18, 2013
dc43872
[SysApps] Make CodecIDToAudioCodec and CodecIDToVideoCodec available …
Dec 20, 2013
50d4a05
[Views] Customize _NET_WM_PID for X11 window backing a Widget
cmarcelo Jan 9, 2014
49ae2e5
[Android] Use the Chromium TLS for thread local storage allocation
Jan 15, 2014
2def3ec
[Views] Fix compiler initialization order errors.
Feb 10, 2014
a399e87
[Android] Allow intercepter to extract paks
Feb 28, 2014
3a03f16
[Android] Turn on WebNotification runtime feature on Android
Jan 14, 2014
374fb69
[Tizen] Enable geolocation for Tizen
Feb 25, 2014
f579438
[Tizen] Hard code for va driver
Mar 10, 2014
0c3b744
[Android] Change the API for ApplicationStatus in base dir.
Apr 1, 2014
95904c5
[Temp] Add support to provide external ozone files in views.
kalyankondapally Mar 5, 2014
f9901c6
[Android] Add a new API to simulate activity started on ApplicationSt…
kurli Apr 8, 2014
6c7ad7c
[Tizen IVI] Make HTML5 full screen API work on IVI.
Feb 25, 2014
2ee6be2
[Android] Address Context leak in ResourceExtractor
Apr 14, 2014
8280a20
[Android] Ignore status from non tracked activities
kurli Apr 16, 2014
795817d
[Tizen] Enable media auto play
qjia7 Apr 22, 2014
3420418
[Android] Add Resource loading filter for MediaPlayer
xingnan Feb 7, 2014
8e57b04
[Extensions] Build glib message pump on Ozone
Jun 9, 2014
bcc5875
[Tizen] Enable blink::OrientationEvent by default
Jun 13, 2014
059f029
[Extensions] Build glib message pump on Ozone
Jun 9, 2014
9eb0985
[Android] Fix the crash of GetUserMedia
xingnan Jun 19, 2014
ffa0958
[Android] Add a new listener to listen the first rendered frame
kurli Jul 7, 2014
49352d0
Provide a ScreenOrientationDispatcherHost getter.
Jul 7, 2014
ad09633
[Temp][Tizen] Temporarily remove ozone dependency for gl
qjia7 Jul 28, 2014
3618a58
[Android] Use TextureView as an alternative compositing surface target
Aug 12, 2014
b9bd5b7
[Android] Only initialize ContentReadbackHandler in onNativeLibraryLo…
Aug 15, 2014
dee95ca
Introduce vaLockBuffer APIs in libva.
shaochangbin Sep 5, 2014
a526e05
[Tizen] Add Tizen Murphy resource policy daemon integration
Sep 11, 2014
145fcb4
[Tizen] Make content fit to the viewport
Sep 24, 2014
066eaa7
[Temp] Backport https://codereview.chromium.org/560553007 from upstream
darktears Sep 29, 2014
4cd5779
[Tizen][Temp] Allow a different ScreenOrientationProvider to be set.
Oct 1, 2014
fec942f
[Temp] Apply ozone-wayland's 0008-Fix-crash-when-switching-to-console…
Oct 1, 2014
012c4d6
.gitignore: Ignore src/third_party/khronos/CL.
Oct 7, 2014
4e78cd0
.gitignore: Ignore src/third_party/webcl.
junmin-zhu Oct 8, 2014
0622b0f
[Backport] Start server thread in new TestWebServer.start() method ra…
Oct 2, 2014
4adebb3
[Backport] Allow forcing TestWebServer to use a specific port number.
Oct 17, 2014
88fc58a
Merge pull request #198 from rakuco/backport-testwebserver-commits
Oct 17, 2014
0c50224
[Android] Add the bridge code to evaluate javascript code for test.
wuhengzhi Nov 4, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
832 changes: 832 additions & 0 deletions .DEPS.git

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ v8.log
/net/testserver.log
/out
/out_*
/ozone
/ppapi/native_client/nacl_irt.xml
/ppapi/native_client/ppapi_lib.xml
/ppapi/native_client/src/shared/ppapi_proxy/nacl_ppapi_browser.xml
Expand Down Expand Up @@ -268,6 +269,7 @@ v8.log
/third_party/jsoncpp/source
/third_party/jsr-305/src
/third_party/junit/src
/third_party/khronos/CL
/third_party/leveldatabase/src
/third_party/leveldb
/third_party/libaddressinput/src
Expand Down Expand Up @@ -323,7 +325,6 @@ v8.log
/third_party/skia
/third_party/smhasher
/third_party/snappy/src
/third_party/speex
/third_party/swiftshader/include/
/third_party/swig
/third_party/syzygy
Expand All @@ -336,6 +337,7 @@ v8.log
/third_party/v8-i18n
/third_party/valgrind
/third_party/v4l2capture
/third_party/webcl
/third_party/webdriver/pylib
/third_party/webdriver/python/selenium
/third_party/webgl
Expand Down Expand Up @@ -392,3 +394,4 @@ v8.log
/win8/metro_driver/metro_driver_version_resources.xml
/x86-generic_out/
/xcodebuild
/xwalk
1,508 changes: 708 additions & 800 deletions DEPS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion android_webview/java/strings/translations/android_webview_strings_am.xtb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="am">
</translationbundle>
</translationbundle>
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion android_webview/java/strings/translations/android_webview_strings_de.xtb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="de">
</translationbundle>
</translationbundle>
Empty file.
2 changes: 1 addition & 1 deletion android_webview/java/strings/translations/android_webview_strings_en-GB.xtb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="en-GB">
</translationbundle>
</translationbundle>
2 changes: 1 addition & 1 deletion android_webview/java/strings/translations/android_webview_strings_es-419.xtb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="es-419">
</translationbundle>
</translationbundle>
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion android_webview/java/strings/translations/android_webview_strings_sw.xtb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="sw">
</translationbundle>
</translationbundle>
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ private void autoLoginTestHelper(final String testName, final String xAutoLoginH
List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>();
headers.add(Pair.create("x-auto-login", xAutoLoginHeader));

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pageUrl = webServer.setResponse(path, html, headers);
final int callCount = loginRequestHelper.getCallCount();
loadUrlAsync(awContents, pageUrl);
Expand All @@ -46,7 +45,7 @@ private void autoLoginTestHelper(final String testName, final String xAutoLoginH
assertEquals(expectedAccount, loginRequestHelper.getAccount());
assertEquals(expectedArgs, loginRequestHelper.getArgs());
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void onReceivedTouchIconUrl(String url, boolean precomposed) {
protected void setUp() throws Exception {
super.setUp();
AwContents.setShouldDownloadFavicons();
mWebServer = new TestWebServer(false);
mWebServer = TestWebServer.start();
}

private void init(TestAwContentsClientBase contentsClient) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void onFormResubmission(Message dontResend, Message resend) {
@Override
public void setUp() throws Exception {
super.setUp();
mServer = new TestWebServer(false);
mServer = TestWebServer.start();
mContentsClient = new TestAwContentsClient();
final AwTestContainerView testContainerView =
createAwTestContainerViewOnMainSync(mContentsClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected void setUp() throws Exception {
mAwContents = mTestContainerView.getAwContents();
mShouldInterceptRequestHelper = mContentsClient.getShouldInterceptRequestHelper();

mWebServer = new TestWebServer(false);
mWebServer = TestWebServer.start();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class AwContentsClientShouldOverrideUrlLoadingTest extends AwTestBase {
@Override
protected void setUp() throws Exception {
super.setUp();
mWebServer = new TestWebServer(false);
mWebServer = TestWebServer.start();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ public void testUpdateVisitedHistoryCallback() throws Throwable {
final String path = "/testUpdateVisitedHistoryCallback.html";
final String html = "testUpdateVisitedHistoryCallback";

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pageUrl = webServer.setResponse(path, html, null);
final DoUpdateVisitedHistoryHelper doUpdateVisitedHistoryHelper =
mContentsClient.getDoUpdateVisitedHistoryHelper();
Expand All @@ -88,7 +87,7 @@ public void testUpdateVisitedHistoryCallback() throws Throwable {
assertEquals(pageUrl, doUpdateVisitedHistoryHelper.getUrl());
assertEquals(true, doUpdateVisitedHistoryHelper.getIsReload());
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand All @@ -110,9 +109,8 @@ public void testGetVisitedHistoryExerciseCodePath() throws Throwable {
final String visitedLinks[] = {"http://foo.com", "http://bar.com", null};
final String html = "<a src=\"http://foo.com\">foo</a><a src=\"http://bar.com\">bar</a>";

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pageUrl = webServer.setResponse(path, html, null);
loadUrlSync(awContents, mContentsClient.getOnPageFinishedHelper(), pageUrl);
visitedHistoryHelper.waitForCallback(callCount);
Expand All @@ -123,7 +121,7 @@ public void testGetVisitedHistoryExerciseCodePath() throws Throwable {

loadUrlSync(awContents, mContentsClient.getOnPageFinishedHelper(), pageUrl);
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ public void testClearCacheMemoryAndDisk() throws Throwable {
createAwTestContainerViewOnMainSync(mContentsClient);
final AwContents awContents = testContainer.getAwContents();

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pagePath = "/clear_cache_test.html";
List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>();
// Set Cache-Control headers to cache this request. One century should be long enough.
Expand Down Expand Up @@ -296,7 +295,7 @@ public void testClearCacheMemoryAndDisk() throws Throwable {
pageUrl);
assertEquals(2, webServer.getRequestCount(pagePath));
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand Down Expand Up @@ -324,10 +323,8 @@ public void testGetFavicon() throws Throwable {
final AwTestContainerView testView = createAwTestContainerViewOnMainSync(mContentsClient);
final AwContents awContents = testView.getAwContents();

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);

final String faviconUrl = webServer.setResponseBase64(
"/" + CommonResources.FAVICON_FILENAME, CommonResources.FAVICON_DATA_BASE64,
CommonResources.getImagePngHeaders(false));
Expand Down Expand Up @@ -357,7 +354,7 @@ public Boolean call() {
assertTrue(awContents.getFavicon().sameAs(originalFavicon));

} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand All @@ -376,9 +373,8 @@ public void testDownload() throws Throwable {
downloadHeaders.add(Pair.create("Content-Type", mimeType));
downloadHeaders.add(Pair.create("Content-Length", Integer.toString(data.length())));

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pageUrl = webServer.setResponse(
"/download.txt", data, downloadHeaders);
final OnDownloadStartHelper downloadStartHelper =
Expand All @@ -392,7 +388,7 @@ public void testDownload() throws Throwable {
assertEquals(mimeType, downloadStartHelper.getMimeType());
assertEquals(data.length(), downloadStartHelper.getContentLength());
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand Down Expand Up @@ -479,9 +475,8 @@ public void testCanInjectHeaders() throws Throwable {
createAwTestContainerViewOnMainSync(mContentsClient);
final AwContents awContents = testContainer.getAwContents();

TestWebServer webServer = null;
TestWebServer webServer = TestWebServer.start();
try {
webServer = new TestWebServer(false);
final String pagePath = "/test_can_inject_headers.html";
final String pageUrl = webServer.setResponse(
pagePath, "<html><body>foo</body></html>", null);
Expand All @@ -504,7 +499,7 @@ public void testCanInjectHeaders() throws Throwable {
assertEquals(value.getValue(), matchingHeaders[0].getValue());
}
} finally {
if (webServer != null) webServer.shutdown();
webServer.shutdown();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void setUp() throws Exception {
mContentsClient = new TestAwContentsClient();
mTestView = createAwTestContainerViewOnMainSync(mContentsClient);
mAwContents = mTestView.getAwContents();
mWebServer = new TestWebServer(false);
mWebServer = TestWebServer.start();
mOrigin = mWebServer.getBaseUrl();

AwSettings settings = getAwSettingsOnUiThread(mAwContents);
Expand Down
Loading