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

Issue 10809015: Fix the sqlite errors of content unittests on Android (Closed)

Created:
8 years, 5 months ago by yongsheng
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix the sqlite errors of content unittests on Android Many tests are failed due to sqlite errors on Android. The reason is that sqlite need a temporary directory to store internal temporary files. However, Android doesn't have this kind of directory while Linux has /var/tmp. To fix this, use in-memory temporary files. It also includes: 1) Add one unit test in sql unittests to reproduce this issue for Android. 2) Remove those disabled cases for content unitests on Android. BUG= TEST=run_tests.py -s sql_unittests; run_test.py -s net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148064

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use SQLITE_TEMP_STORE=3 for android #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M build/android/gtest_filter/content_unittests_disabled View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M sql/connection_unittest.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M third_party/sqlite/README.chromium View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/sqlite/sqlite.gyp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
yongsheng
This patch is to fix many failed cases caused by sqlite. The root cause is ...
8 years, 5 months ago (2012-07-19 14:23:02 UTC) #1
yongsheng
the old sql unittests don't cover this scenario, so i create a new unit test ...
8 years, 5 months ago (2012-07-19 14:24:34 UTC) #2
John Grabowski
Hey Scott, can you review this plz?
8 years, 5 months ago (2012-07-19 19:10:41 UTC) #3
Scott Hess - ex-Googler
How does Android SQLite handle this, then? Is this the same solution? Would arranging for ...
8 years, 5 months ago (2012-07-19 19:47:21 UTC) #4
Scott Hess - ex-Googler
http://crbug.com/138128 to track the shouldn't-create-temp-files problem. Also, in case it wasn't clear, I was suggesting ...
8 years, 5 months ago (2012-07-19 20:06:59 UTC) #5
yongsheng
ok, I'll investigate below 3 issues: 1) why generating temp files internally? 2) Android sqlite ...
8 years, 5 months ago (2012-07-20 01:25:24 UTC) #6
yongsheng
On 2012/07/20 01:25:24, yongsheng wrote: > ok, I'll investigate below 3 issues: > 1) why ...
8 years, 5 months ago (2012-07-20 03:08:35 UTC) #7
yongsheng
refine it according to your comments and sqlite usage in Android OS. Thanks.
8 years, 5 months ago (2012-07-20 03:21:35 UTC) #8
Scott Hess - ex-Googler
lgtm. I've poked at it a little bit, and at this point I suspect that ...
8 years, 5 months ago (2012-07-20 12:37:46 UTC) #9
yongsheng
On 2012/07/20 12:37:46, shess wrote: > lgtm. thanks for review. Others, will you help review ...
8 years, 5 months ago (2012-07-20 14:42:10 UTC) #10
yongsheng
yaron & jrg, will you review it?
8 years, 5 months ago (2012-07-21 00:18:57 UTC) #11
John Grabowski
Android LGTM
8 years, 5 months ago (2012-07-23 18:58:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yongsheng.zhu@intel.com/10809015/9002
8 years, 5 months ago (2012-07-24 01:10:41 UTC) #13
commit-bot: I haz the power
Failed to apply patch for build/android/gtest_filter/content_unittests_disabled: While running patch -p1 --forward --force; patching file build/android/gtest_filter/content_unittests_disabled ...
8 years, 5 months ago (2012-07-24 01:10:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yongsheng.zhu@intel.com/10809015/14001
8 years, 5 months ago (2012-07-24 05:15:44 UTC) #15
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 08:25:54 UTC) #16
Change committed as 148064

Powered by Google App Engine
This is Rietveld 408576698