summaryrefslogtreecommitdiffstats
path: root/base/json/json_writer_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* JSONWriter cleanup: integrate pretty print into write options.ericdingle@chromium.org2012-03-161-16/+16
| | | | | | | | | | | BUG= TEST=base_unittests TBR=abodenha@chromium.org,ajwong@chromium.org,chocobo@chromium.org,mnissler@chromium.org,akalin@chromium.org,brettw@chromium.org,arv@chromium.org Review URL: http://codereview.chromium.org/9590002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127080 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new option to JSONWriter, which instructs it not to append '.0' orkkania@chromium.org2012-03-081-1/+9
| | | | | | | | | | | | | | | | | | | use exponential notation when writing doubles with no fractional part. This is needed so we can write an integer value larger than what a 32-bit int will hold using a double, and write the said double in such a way as to enable external JSON readers (that support int64) to convert it to an int64 instead of a double. The other alternative is to add support for int64 in the Value classes and clients. See http://codereview.chromium.org/8962042 BUG=none TEST=none Review URL: http://codereview.chromium.org/9016024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125705 0039d316-1c4b-4281-b951-d872f2087c98
* Allow JSONWriter and JSONValueSerializer to ignore binary values when ↵ericdingle@chromium.org2011-11-181-1/+27
| | | | | | | | | | | | | | | | instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110021 Review URL: http://codereview.chromium.org/8505033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110640 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110021 - Broke CrOS compilersleevi@chromium.org2011-11-151-27/+1
| | | | | | | | | | | | | | | | | Allow JSONWriter and JSONValueSerializer to ignore binary values when instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Review URL: http://codereview.chromium.org/8505033 TBR=ericdingle@chromium.org Review URL: http://codereview.chromium.org/8528051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110027 0039d316-1c4b-4281-b951-d872f2087c98
* Allow JSONWriter and JSONValueSerializer to ignore binary values when ↵ericdingle@chromium.org2011-11-151-1/+27
| | | | | | | | | | | | | | instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Review URL: http://codereview.chromium.org/8505033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110021 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Real* to Double* in values.* and dependent filesarv@chromium.org2011-02-011-3/+3
| | | | | | | | | BUG=None TEST=Compiles and passes all tests Review URL: http://codereview.chromium.org/6248026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73232 0039d316-1c4b-4281-b951-d872f2087c98
* Remove remaining deprecated wstring methods from base/values.{cc,h}.viettrungluu@chromium.org2010-08-171-3/+3
| | | | | | | | | BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3109025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56362 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deprecated wstring DictionaryValue::SetWithoutPathExpansion().viettrungluu@chromium.org2010-08-141-6/+6
| | | | | | | | | BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3121017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56128 0039d316-1c4b-4281-b951-d872f2087c98
* Many changes to DictionaryValues:pkasting@chromium.org2009-11-251-1/+18
| | | | | | | | | | | | | | | | | * Add support for keys with "." in them via new XXXWithoutPathExpansion() APIs. * Use these APIs with all key iterator usage. * SetXXX() calls cannot fail, so change them from bool to void. * Change GetSize() to size() since it's cheap, and add empty(). Other: * Use standard for loop format in more places (e.g. instead of while loops when they're really doing a for loop). * Shorten a few bits of code. BUG=567 TEST=none Review URL: http://codereview.chromium.org/441008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33109 0039d316-1c4b-4281-b951-d872f2087c98
* Move the json-related files into a separate json directory. This hopefully alsobrettw@chromium.org2009-10-231-0/+81
makes the naming of string_escape more clear (it's actually JSON-specific). Move the files into the base namespace. TEST=none BUG=none Review URL: http://codereview.chromium.org/316016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29934 0039d316-1c4b-4281-b951-d872f2087c98