aboutsummaryrefslogtreecommitdiff
path: root/conformance/conformance_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Down-integrate from google3.Feng Xiao2018-08-081-2308/+116
|
* Enable ignoring unknown in json parsing in php (#4839)Paul Yang2018-07-091-86/+160
| | | | | | | | | | * Enable ignoring unknown in json parsing in php * Update generated descriptor files * Update failure list for other languages. * Remove unnecessary php files
* Merge pull request #4387 from acozzette/down-integrateAdam Cozzette2018-03-201-0/+4
|\ | | | | Integrated internal changes from Google
| * Integrated internal changes from GoogleAdam Cozzette2018-03-131-0/+4
| |
* | Add conformance test for null value in list JSONJon Skeet2018-03-011-0/+18
|/
* Removed using statements from common.hAdam Cozzette2018-01-261-1/+1
| | | | | | These statements pulled a bunch of symbols from the std namespace into the global namespace. This commit removes all of them except for std::string, which is a bit trickier to remove.
* All integer types should accept null in json. (#3869)Paul Yang2017-11-131-0/+16
|
* Reserve unknown in Ruby (#3763)Paul Yang2017-10-261-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | * Reserve unknown in ruby * Revert ruby tests. Wait for cpp impl for conformance test * Add conformance test for preserving unknown * Add unknown field conformance test to csharp failure list. * Fix comments * Fix comment * Fix comments * Fix typo * Use stringsink_string directly * Mark hd unused * Remove unused encodeunknown_handlerfunc
* Merge pull request #2377 from mcos/chore/conformance-null-testsFeng Xiao2017-09-191-0/+8
|\ | | | | Conformance Tests for Null Timestamp and Duration JSON Values
| * Add tests to demonstrate json parsing for null Timestamp and Duration typesMark Costello2016-11-161-0/+8
| |
* | Merge from masterJisi Liu2017-07-251-104/+166
| |
* | Merge master into 3.4.xJisi Liu2017-07-181-4/+5
|\ \
| * | Add std:: namespace prefix to set and map (#3332)tanderson-google2017-07-091-3/+3
| | | | | | | | | * Remove using std::{set,map}
| * | Updated upb to fix JSON conformance issues. (#3206)Joshua Haberman2017-06-191-1/+1
| | | | | | | | | | | | | | | | | | * Fixed a bunch of Ruby conformance errors. * Fixed some more Ruby conformance errors in JSON.
| * | Raise the number of digits used for floats.Thomas Van Lenten2017-06-161-0/+1
| | | | | | | | | | | | | | | About 1.5% of all IEEE754 single-precision numbers require nine decimal digits to represent accurately.
* | | Merge from Google internal for 3.4 releaseJisi Liu2017-07-181-3/+4
|/ /
* | Down-integrate from google3.Feng Xiao2017-03-291-0/+17
| |
* | A few more cases for binary conformance tests. (#2500)Joshua Haberman2017-01-061-4/+27
| | | | | | | | | | | | | | | | | | | | | | * A few more cases for binary conformance tests. * over-encoded varints (encoded in more bytes than are necessary). * truncated varints (>32 bits for 32-bit types). * Fixed Python decoding bug with 32-bit varints. * Fixed 1L -> 1LL for 32-bit platforms.
* | Added conformance testing for binary primitive types. (#2491)Joshua Haberman2016-12-131-34/+154
| | | | | | This is basic and more tests will be added over time.
* | Fix #include in cc filesJulien Brianceau2016-12-091-1/+1
| |
* | Factored Conformance and Benchmark test messages into shared test schema. ↵Joshua Haberman2016-12-031-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#1971) * Factored Conformance test messages into shared test schema. * Updated benchmarks to use new proto3 message locations. * Fixed include path. * Conformance: fixed include of Python test messages. * Make maven in Rakefile use --batch-mode. * Revert changes to benchmarks. On second thought I think a separate schema for CPU benchmarking makes sense. * Try regenerating C# protos for new test protos. * Removed benchmark messages from test proto. * Added Jon Skeet's fixes for C#. * Removed duplicate/old test messages C# file. * C# fixes for test schema move. * Fixed C# to use the correct TestAllTypes message. * Fixes for Objective C test schema move. * Added missing EXTRA_DIST file.
* | Integrated internal changes from GoogleAdam Cozzette2016-11-171-14/+12
|/
* Fix bugs for internal integration.Bo Yang2016-10-101-41/+41
|
* Integrate internal changesBo Yang2016-10-101-283/+303
|
* Add note about JSON tests maybe being wrong. (#1992)Thomas Van Lenten2016-08-231-4/+28
| | | | | | | | Add note about JSON tests maybe being wrong. - Add note about the JSON test maybe not being correct yet. - Add test to checks the generated names for double underscores to be sure they are what is expected.
* More JSON testsThomas Van Lenten2016-08-221-0/+72
| | | | | - String behaviors - Testing only valid JSON is allowed
* Add more JSON tests around underscores (#1963)Thomas Van Lenten2016-08-161-2/+36
| | | | Add more JSON tests around underscores
* Add more types to the zero oneof cases.Thomas Van Lenten2016-08-111-0/+30
| | | | | | Incase the different runtimes have different generation/implementations for for the different primitive field types, cover a larger range of the proto types in the oneof zero tests.
* Add conformance test for zero fields in oneofs. (#1939)Thomas Van Lenten2016-08-111-1/+45
| | | | * Add conformance test for zero fields in oneofs. * Add failures to the "expected" files.
* Amend the conformance tests to only use Int64/Uint64 non-wrapped values ↵Jon Skeet2016-07-311-4/+12
| | | | | | | | | | which (#1164) can reasonably be expected to be interoperable. (The fact that not all Int64/Uint64 values *can* be exactly represented in IEEE-754 and thus interoperably amongst JSON implementations is precisely the reason for wrapping them when we serialize... it shouldn't be a surprise that we can't round-trip in unwrapped form for all values.)
* Make conformance tests more strict about the failure list.Josh Haberman2016-06-031-15/+40
| | | | | | The failure lists were falling out of date because the tests would pass even if people forgot to remove failures from the list.
* Allow conformance test runner to tolerate crashes, and re-enable conformance ↵Josh Haberman2016-01-111-1/+7
| | | | tests.
* Fix up the conformance testsThomas Van Lenten2016-01-051-0/+11
| | | | | - Update all the new runner cases to handle a skip result as a skip and not a failure. - Make ObjC use the new serialize_error result if it fails to generate the data.
* Fix conformance test to only report skips in verbose mode.Thomas Van Lenten2016-01-051-3/+0
| | | | | | | commit e841bac4fcf47f809e089a70d5f84ac37b3883df seems to have mis-merged the change to reporting skipped tests. I didn't check if there were other merge issues.
* Make conformance tests build for C++ and Java.Feng Xiao2015-12-161-2/+1
| | | | Change-Id: Ibb3fe6f919cc7ca0df91da5e1697ba33d259e433
* Down-integrate from internal code base.Feng Xiao2015-12-111-19/+1476
|
* Conformance test implementation for Python.Josh Haberman2015-12-021-3/+5
|
* Added support for Json and valid input to conformance tests.Josh Haberman2015-07-101-19/+167
| | | | | | | | | | | | | | | | | | | | | | | | | This was enabled by the recent open-sourcing of JSON support and MessageDifferencer. MessageDifferencer allows the conformance suite to expand because it allows us to write tests for payloads that parse successfully. To verify the testee's output payload, we need to parse it back into a message and compare the message instances. Comparing output bytes vs. a golden message is *not* valid, because protobufs do not have a canonical encoding (especially in the presence of maps, which have no prescribed serialization order). We only add one small JSON test for now, but with the framework in place we now have the foundation to dramatically expand the coverage of the conformance test suite. Also added the ability for the testee to skip tests that exercise features that are unimplemented. This allows Java (which currently has no JSON support) to skip tests involving JSON. Change-Id: I697b4363da432b61ae3b638b4287c4cda1af4deb
* Removed test_name from conformance.proto.Josh Haberman2015-06-041-8/+9
| | | | Change-Id: I382dcda97fa123a6da4ff5faad5d7ece95853f33
* Conformance tests can now be excluded based on their names.Josh Haberman2015-06-031-43/+117
| | | | | | | This allows us to enable conformance tests even when we know that some tests are failing and need to be fixed. Change-Id: I372f43663008747db6f2b2cf06e6ffa4c6d85b2d
* down-integrate internal changesBo Yang2015-05-211-0/+1
|
* Factored conformance tests so they can run in-process.Josh Haberman2015-04-151-175/+90
| | | | | | This is necessary for testing on iOS. Change-Id: I54ec1e3aa2e9fbfff9a6cd6580920a6a62069b63
* Added first version of conformance tests.Josh Haberman2015-04-081-0/+395
Change-Id: Ib75664194491643f8e4f1503a2ed942a2d1e1655