Граф коммитов

1510 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd 7bb9ec5177 Bug 1229985 - remove nsAutoArrayPtr; r=erahm 2015-12-06 10:51:43 -05:00
Mike Shal de1e7b8d59 Bug 1241976 - port INSTALL_TARGETS in xpcom/tests to moz.build; r=glandium 2016-01-21 21:06:50 -05:00
ISHIKAWA, Chiaki be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Valentin Gosu 52d81f715f Bug 241788 - mozilla::Tokenizer - token type for \n should whitespace if given in constructor r=honzab 2016-02-05 14:43:45 +01:00
Nicholas Nethercote 5315826043 Bug 1181444 (part 2) - Remove nsBaseHashtable::Enumerate(). r=froydnj.
\o/

--HG--
extra : rebase_source : 4f4831b1feb4ee25b6adc7aeeae548e5d0df5c8d
2015-11-24 19:42:28 -08:00
Birunthan Mohanathas 54720f2a75 Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas 7104c2aaa5 Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas d39376e4d0 Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj 2016-01-31 17:12:13 +02:00
Birunthan Mohanathas 6ed751e586 Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Xidorn Quan dd6be4d4ca Bug 1241901 part 4 - Stop using nsAutoPtr for holding primitive arrays. r=froydnj
--HG--
extra : source : 683ad831dc3e7fc197cbfe1b53665c777b3158ab
2016-01-30 10:33:41 +11:00
Eric Rahm 1828042c1f Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Phil Ringnalda 52aade6b43 Back out 3e168e5a04bf (bug 1174972) for build bustage
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm f8d0e8949c Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell 2016-01-05 13:05:19 -08:00
Christoph Kerschbaumer 71921c1eac Bug 1232803 - Convert JS callsites to use open2 within xpcom/ (r=sicking) 2016-01-11 12:17:10 -08:00
Chris Manchester a58dc78ade Bug 1237447 - Disable the crashreporter when crashing intentionally in TestPLDHash. r=njn
--HG--
extra : commitid : BIAIgGAkCYL
2016-01-07 12:27:10 -08:00
Eric Rahm 77c03426ad Bug 1223222 - Part 2: Add tests for NSPRLogModulesParser. r=froydnj 2016-01-05 12:15:59 -08:00
Shu-yu Guo 1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Nathan Froyd cedf0dc1a3 No bug - remove tab from xpcom/test/gtest/moz.build file; r=me
DONTBUILD because whitespace only changes are always green.
2016-01-04 16:17:53 -05:00
Geoff Brown c0573a940f Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
Nicholas Nethercote d180cd4a92 Bug 1181444 (part 1) - Remove nsBaseHashtable::EnumerateRead(). r=froydnj.
--HG--
extra : rebase_source : c07a83a2984ca4e67f3441d9e18b6bbac772495d
2015-11-22 14:39:01 -08:00
Mike Hommey 70a5b9589d Bug 1227388 - Finish removing dehydra support. r=mshal
Dehydra/Treehydra is unmaintained, broken (iirc), and obsoleted by clang
static analysis. We've removed parts of the build system support for it, but
not all. This is meant to remove the remains.
2015-11-25 08:23:25 +09:00
sajitk 6418c52357 Bug 1201997 - Part 1 - Converted compiled test to gtest for nsDeque class. Added tests to test untested methods. r=froydn
--HG--
rename : xpcom/tests/TestDeque.cpp => xpcom/glue/tests/gtest/TestNsDeque.cpp
2015-11-15 14:47:49 +01:00
Chris Peterson 4a9be99fc7 Bug 1220544 - Fix -Wunreachable-code warnings in xpcom. r=mccr8
xpcom/glue/PLDHashTable.cpp:471:10 [-Wunreachable-code-return] 'return' will never be executed
xpcom/tests/TestAutoPtr.cpp:324:9 [-Wunreachable-code] code will never be executed
xpcom/tests/TestBlockingProcess.cpp:6:11 [-Wunreachable-code-return] 'return' will never be executed
2015-11-02 21:03:03 -08:00
Nathan Froyd a5557d1390 Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm 2015-10-31 13:47:14 -04:00
Birunthan Mohanathas d72daf8147 Bug 1185763 - Part 7: Add test for r-value nsTArray::AppendElements. r=froydnj 2015-11-02 07:53:26 +02:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Nathan Froyd 78c64c0cde Backout 5649b6b8cec3 (bug 1219246) for Linux xpcshell bustage 2015-10-31 13:34:06 -04:00
Nathan Froyd a5bf910f3f Bug 1219246 - use UniquePtr instead of nsAutoArrayPtr in xpcom/; r=erahm 2015-10-28 09:50:29 -04:00
Carsten "Tomcat" Book 6d8a42769f Backed out changeset d84d5faa4852 (bug 1201997) for m2 perma failures
--HG--
rename : xpcom/glue/tests/gtest/TestNsDeque.cpp => xpcom/tests/TestDeque.cpp
extra : rebase_source : 689453beeca1b317d9b2f57889ba1b133b628821
2015-10-30 15:53:22 +01:00
Honza Bambas ba03a4f818 Bug 1219726 - Nit: Tokenizer.ShortcutChecks gtest should use nsDependentCSubstring. r=nfroyd 2015-10-29 05:58:00 +01:00
sajitk d4bc9904dc Bug 1201997: Part 1 - Converted compiled test to gtest for nsDeque class. Added tests to test untested methods. r=froydn
--HG--
rename : xpcom/tests/TestDeque.cpp => xpcom/glue/tests/gtest/TestNsDeque.cpp
extra : rebase_source : 76fe6e0468ad1e0402a536bcb313bd4bb83f9c17
2015-10-29 19:55:00 +01:00
Tooru Fujisawa 1619a85fbf Bug 1217424 - Remove for-each from xpcom/. r=bholley
--HG--
extra : commitid : 6mnwhyI2pYK
2015-10-19 05:43:45 +09:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
c947ee6806 Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj
commit 7d4543037c618cc0e95b6f1801c2187e3361c82a (HEAD, explicit)
Author: Ehsan Akhgari <ehsan@mozilla.com>
    Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj

--HG--
rename : xpcom/tests/TestAtoms.cpp => xpcom/tests/gtest/TestAtoms.cpp
2015-01-27 09:28:45 -05:00
sajitk b564e1db32 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg
--HG--
extra : amend_source : 8b78a62b071a515f3652e77c2abd37561ebf3380
2015-10-14 11:17:07 +05:30
Nigel Babu 640106b762 Backed out changeset 7077589b174c (bug 996105) for failing its own tests ON A CLOSED TREE 2015-10-13 16:10:39 +05:30
sajitk 5491f00db4 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg 2015-09-27 17:16:00 +02:00
Aryeh Gregor c48c61128c Bug 1213862 - Align nsString whitespace handling with web specs; r=froydnj 2015-10-12 20:47:57 +03:00
Hiroyuki Ikezoe 00b0491dd0 Bug 1167627 - Part 3: Use mozinfo in xpcom/. r=bsmedberg 2015-10-11 21:48:00 +02:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Tooru Fujisawa 5d153352bf Bug 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj
--HG--
extra : commitid : DVEzMkDSqJL
extra : rebase_source : 6d705caf89dfde999ed144d702c8d9173844e86a
2015-09-23 18:42:20 +09:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nicholas Nethercote 647b520991 Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07:00
Nicholas Nethercote 6f036921dc Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)

--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Chris Peterson 0dbaae1ce2 Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8 2015-09-07 23:56:16 -07:00