Commit Graph

230 Commits

Author SHA1 Message Date
Joey Armstrong
8e99512c32 bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS 2013-04-29 14:49:00 -04:00
Nathan Froyd
09f47de647 Bug 836493 - part 1: ensure that the initial reference to mozStorageService is obtained on the main thread; r=mak 2013-02-08 12:04:26 -05:00
Xin Zhang
9ba2b443d3 Bug 849764 - Replace removeObserver() calls with three params with two in storage dir. r=mak 2013-04-06 14:46:35 -04:00
Ben Turner
e850a70025 Bug 857376 - 'Use 2k page_size for databases on B2G'. r=mak, sr=mossop. 2013-04-04 17:14:46 -07:00
Kyle Machulis
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Gregory Szorc
a98ca9945e Bug 784841 - Part 18ζ: Convert /storage; r=glandium 2013-02-25 13:05:31 -08:00
Marco Bonardo
5df3128560 Bug 836039 - Reduce cache size per SQLite connection to 2MB
r=asuth
2013-02-21 11:12:48 +01:00
Ryan VanderMeulen
96b55dfae9 Backed out changesets 50f4ba15a3c7 and cafa8ba33704 (bug 796388) for mochitest-2 orange. 2013-01-29 16:38:37 -05:00
Nathan Froyd
5f2897868a Bug 796388 - part 1 - delete TelemetryVFS; r=mak 2013-01-29 11:57:01 -05:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Aryeh Gregor
b1731df87c Bug 779473 - Make nsresult an enum class; r=ehsan 2012-08-02 11:55:58 +03:00
Ehsan Akhgari
15098d1976 Remove the unused DatabaseTester::mState field; no bug 2012-10-02 20:46:08 -04:00
Jan Beich
9eb6b4f558 Bug 787730 - Don't assume NULL to be a character; r=ehsan 2012-09-06 12:53:00 -04:00
Aryeh Gregor
110dd3d68d Bug 782616 - Don't return nsresult from main() (storage/); r=mak 2012-08-07 20:17:27 +03:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
e57dd159b2 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Ehsan Akhgari
dee0875e97 Bug 758992 storage follow-up: make AsyncStatementSpinner's destructor virtual as it is derived from in Windows tests; r=me to fix bustage 2012-07-10 16:16:55 -04:00
Ehsan Akhgari
8f3cc261dc Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (storage parts); r=mak 2012-06-19 23:30:51 -04:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Nathan Froyd
442af3d331 Bug 589032 - remove mozIStorageStatementWrapper; r=mak 2012-05-02 13:01:39 -04:00
Rafael Ávila de Espíndola
fc42dc3a1f Bug 714377 - Close connection in storage/test/unit/test_storage_connection.js. r=mak. 2012-01-03 14:59:32 -05:00
Rafael Ávila de Espíndola
b1371ecf12 Bug 714378 - Close connections in storage/test/unit/vacuumParticipant.js. r=mak 2012-01-03 09:41:16 -05:00
Rafael Ávila de Espíndola
cd113516c5 Bug 714367 - Add an explicit getOpenedUnsharedDatabase to storage/test/unit/head_storage.js. r=mak. 2012-01-03 09:12:54 -05:00
Rafael Ávila de Espíndola
d2ffa67de3 Bug 713221 - Close database in test_AsXXX_helpers.cpp. r=mak. 2011-12-28 09:32:19 -05:00
Nicholas Nethercote
5d033e6f25 Bug 703113 - Fix overshadowed |pageSize| variable in Connection::initialize. r=mak. 2011-11-23 14:22:13 -08:00
Marco Bonardo
cd07a799ad Bug 692487 - Decrease Storage connections default cache_size.
r=sdwilsh
2011-11-09 15:06:40 +01:00
Marco Bonardo
b0a26189a7 Bug 658303 - mozIStorageConnection::Clone() should copy over pragmas.
r=sdwilsh
2011-10-03 21:55:03 +02:00
Makoto Kato
51dd188c4a Bug 672324 - Fix test for bug 650509 (Other apps can read Firefox profile files). r=mak77 2011-11-04 17:40:25 +09:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Matt Brubeck
14c5854817 Back out ba2483679e59 (bug 658303) because of Linux Ts Paint regressions 2011-10-03 17:30:26 -07:00
Marco Bonardo
e13883a233 Bug 686025 - nsNavHistory::AsyncExecuteLegacyQueries uses synchronous createStatement instead of createAsyncStatement.
r=asuth, sdwilsh
2011-10-03 23:50:23 +02:00
Marco Bonardo
8754781e87 Bug 658303 - mozIStorageConnection::Clone() should copy over pragmas.
r=sdwilsh
2011-10-03 21:55:03 +02:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jezreel Ng
952495179e Bug 666611 - Do not set chunksize if less than 500MiB of storage is available. r=mak 2011-09-05 10:29:06 +01:00
Geoff Brown
1264a5446f Bug 668349 - Changes to xpcshell.ini; r=jmaher 2011-08-22 09:00:50 +01:00
Ed Morley
3de7861b5f Bug 659234 - Remove unused variable |rv| from test_file_perms.cpp; r=sdwilsh 2011-08-18 12:06:55 +02:00
Taras Glek
1800d8f336 Bug 668378: Telemetry sqlite IO r=asuth 2011-07-21 11:12:31 -07:00
Steve Fink
b5b601df06 Bug 668906 - Do not call openUnsharedDatabase with a null file (r=sdwilsh)
--HG--
extra : rebase_source : fbd0febc77e9972d10409ce09c73759f7d156ad1
2011-07-01 15:53:41 -07:00
Marco Bonardo
1d4d6212bb Merge places and mozilla-central. a=developers 2011-05-24 04:51:59 +02:00
Marco Bonardo
a363c063f6 Bug 658135 - Use sqlite3_stmt_readonly to check if multiple async statements need a transaction.
r=sdwilsh
2011-05-24 00:15:01 +02:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Brad Lassey
8529a41967 bug 650509 - Other apps can read Firefox profile files, test for sqlite permissions changes r=sdwilsh 2011-05-13 14:22:34 -04:00
Ed Morley
55afc5a710 Bug 654732 - Remove WinCE code from storage/* & db/sqlite3/src/Makefile.in; r=sdwilsh 2011-05-10 20:24:49 +02:00
Chris Jones
ed22df8f64 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Marco Bonardo
b1af1ebb06 Bug 638123 (followup) - Remove extraneous semicolon to make Linux happy. 2011-04-28 21:47:10 +02:00
Marco Bonardo
5628a61652 Bug 638123 - Test for bug 637957.
r=sdwilsh
2011-04-28 19:55:09 +02:00
Philipp von Weitershausen
84bbbabc50 Bug 648367 - Add run_next_test to head.js. r=ted 2011-04-18 13:31:20 -07:00
Shawn Wilsher
981c03168d Bug 645049 - Update tests to no longer use a deprecated API
r=Mossop
2011-03-31 10:19:32 -07:00
Mike Hommey
291fe1848f Bug 584474 part 6 - Remove duplicate libxpcomglue_s in link flags. r=ted 2011-02-25 15:02:04 +01:00
Marco Bonardo
0786c95d93 Bug 628921 - Changing from WAL to a rollback journal to change page_size may cause a infinite loop @AsyncExecuteStatements::executeStatement.
r=sdwilsh a=blocking
2011-02-16 13:51:26 +01:00
Serge Gautherie
b66cc68010 Bug 619350 - Better identify the 2 'Deadlock detector correctness' tests; (Av1) Remove unwanted ";" at end of macros, Make test names and (failed) result logs more explicit, Add a log when skipping TestDeadlockDetectorScalability tests.
r=jones.chris.g a=(test only).
2011-02-03 10:57:00 +01:00
Andrew Sutherland
2af4f44190 Bug 624051 - AsyncStatement destructor should finalize statements on the asynchronous thread when available to avoid blocking the main thread. r=sdwilsh, a=blocking2.0 2011-01-19 18:16:42 -08:00
Chris Jones
8bdd61eba9 Bug 594263: Bump up timeout to try to make orange go away. r=sdwilsh a=t 2011-01-13 18:07:43 -06:00
Phil Ringnalda
79b29477df Bug 619623 - reorder the parts of the error messages so tbpl can spot the filename, r=sdwilsh, a=test 2010-12-18 19:30:46 -08:00
Shawn Wilsher
75c838117e Fix orange on linux opt builds by ifdefing around the problem. a=orange :( 2010-11-17 14:42:13 -08:00
Shawn Wilsher
3e1f89f94a Backed out changeset 6716b289e613. 2010-11-12 08:57:43 -08:00
Shawn Wilsher
15eb6225a3 Disables all link coloring lookups to the db. Wanted to run this on try, but it is not cooperating. There will be orange, but that's OK. This will be backed out shortly. 2010-11-12 08:56:09 -08:00
Shawn Wilsher
766e3809c2 Bug 599969 - Add a statement cache helper object that is exported by storage.
This adds a templated StatementCache helper object (with tests!) that allows
consumers of storage to easily cache and reuse statements.  Consumers only need
to pass in the query string, and the rest is handled for them.
r=asuth
sr=rs
2010-11-08 11:42:29 -08:00
Shawn Wilsher
8c46198937 Merge mozilla-central into places. 2010-10-20 12:33:53 -07:00
Shawn Wilsher
ca8b2b3da8 Bug 599970 - Add GetInterface for nsIEventTarget on Connection
r=asuth
2010-10-05 15:01:22 -07:00
Marco Bonardo
f8d95d590c Bug 541373 (part 1) - Provide a global VACUUM component. r=sdwilsh sr=vlad a=blocking 2010-10-19 15:46:49 +02:00
Taras Glek
f849918830 Bug 581606 - Avoid sqlite fragmentation via SQLITE_FCNTL_CHUNK_SIZE r=asuth sr=shaver a=b6 2010-09-01 20:35:46 -05:00
Shawn Wilsher
31576fbeec Bug 583882 - Need a way to clone an existing connection.
r=asuth
sr=shaver
a=blocking2.0
2010-08-27 12:42:58 -07:00
Joel Maher
b61eda4b1d Bug 586754 Xpcshell tests should use relativesrcdir instead of $MODULE (android prepartion) r=mitchell.field a=NPOTB 2010-08-26 14:47:28 -07:00
Clint Talbert
1afdc1b8df Backed out changeset 49beef9387a0 due to Xpcshell orange a=backout
--HG--
extra : rebase_source : 01307f705ab07b7784401d69a53921b200544978
2010-08-25 14:03:44 -07:00
Joel Maher
51fff79f07 Bug 586754 Change xpcshell to use $relativesrcdir instead of $module for android support a=NPOTB r=mitchell.field 2010-08-25 11:47:39 -07:00
Jonas Sicking
cbc0676504 Backout bugs 586754, 574189, 584611 due to orange. a=backout 2010-08-20 11:08:43 -07:00
Joel Maher
6763342e81 Bug 586754 xpcshell tests should use relativesrcdir instead of $MODULE r=:Mitch a=NPOTB 2010-08-20 09:32:58 -07:00
Marco Bonardo
f9a6abae66 Bug 547190 - AsInt64 (and other AsXXX cpp helpers) ignores GetInt64 failures. r=sdwilsh 2010-06-22 02:01:33 +02:00
Steve Fink
aed0c5459e Bug 580019: Fix functiontimer crash when opening db with NULL filename 2010-08-02 14:29:59 -07:00
Neil Rashbrook
0b700a41bb Backout previous changes to try to fix bustage 2010-08-02 00:30:12 +01:00
Neil Rashbrook
f1b32deb08 Bug 522770 followup to fix shared build bustage r=khuey 2010-08-02 00:00:56 +01:00
Kyle Huey
932ea79b49 Bug 522770: Link directly to object files instead of intermediate static libs. Patch originally written by Ted Mielczarek. Checking into a CLOSED TREE as a bustage fix. reviews pending.
--HG--
extra : rebase_source : 54a506a5815dcdedaf3f61ad7d6bdd0529d7f5f7
2010-08-01 01:48:21 -07:00
Shawn Wilsher
6d9ba47ee5 Bug 578939 - Storage service cannot be initialized off of the main thread.
r=asuth
a=blocking2.0
2010-07-24 11:21:17 -07:00
Robert Sayre
70fc03b113 Merge mozilla-central to tracemonkey. 2010-07-02 17:25:52 -07:00
Jeff Walden
d52d02e814 Remove a couple checks in test code that had asserted that Object.getOwnPropertyNames wasn't implemented. r=orange 2010-07-02 00:26:09 -07:00
Taras Glek
bb78f82fbe Bug 416330 - Suboptimal SQLite page size r=sdwilsh 2010-07-01 10:57:13 -07:00
Phil Ringnalda
9256e9cab3 Remove test from backed out bug 416330 so the CLOSED TREE can actually pass tests 2010-06-28 18:19:39 -07:00
Taras Glek
ce040e2786 Bug 416330 - Suboptimal SQLite page size r=sdwilsh
--HG--
extra : rebase_source : 053c7b1d975304ed7d402bb619874c889c71425c
2010-06-28 12:13:26 -07:00
Jeff Walden
52312bac03 Bug 518663 - ES5: Object.getOwnPropertyNames. r=jorendorff 2009-09-24 14:33:14 -07:00
Shawn Wilsher
688f6b6cd2 Bug 571599 - Use sqlite3_unlock_notify
sr=vlad
r=bent
r=asuth
2010-06-21 14:23:00 -07:00
Dave Townsend
07c355da2b Bug 570529: mozIStorageStatement.execute() should reset itself even if an error occurs. r=sdwilsh 2010-06-07 15:06:56 -07:00
Chris Jones
8095e43052 Backed out changeset c60e3e48ea38 2010-06-24 19:56:14 -05:00
Taras Glek
065ac23871 Bug 416330 - Suboptimal SQLite page size r=sdwilsh 2010-06-24 16:39:24 -07:00
Shawn Wilsher
38ecfb2f5c Test for bug 562866. r=jorendorff r=asuth
--HG--
rename : storage/test/unit/test_js_helpers_enumerate.js => storage/test/unit/test_js_helpers.js
2010-05-11 14:14:54 -07:00