Jon Skeet
ff334a60eb
Change ReadTag and PeekTag to just use 0 as a return value for "end of stream", rather than using an awkward out parameter.
...
This simplifies quite a lot of code.
Generated code in next commit.
9 years ago
Jon Skeet
607940321c
Merge pull request #689 from jskeet/fix-eof
...
C# conformance tests
9 years ago
Jon Skeet
c13a612dc4
Update AssemblyInfo for conformance - mostly to fix version numbers.
9 years ago
Jon Skeet
15bf55e225
Validate that after reading a message, we've consumed as many bytes as we expected to.
...
We should now have no conformance failures.
9 years ago
Jon Skeet
fe355b26ec
Generated code changes for previous commit.
9 years ago
Jon Skeet
9df2defa29
Consume unknown fields when parsing.
...
This is expected to be the cause of the conformance test failures.
Generated code in next commit.
9 years ago
Jon Skeet
b6defa7c11
Added C# conformance tests.
...
The tests are run from Travis in the same way as on other
platforms. Currently some expected failures - but only expected
in that they're what we got to start with. Will try to fix them in
other pull requests.
9 years ago
Jon Skeet
044c36ebef
First pass at C# conformance tests.
...
Completely untested so far - easier to get started in VS and then transfer to Linux for tweaking...
9 years ago
Jon Skeet
d77d70d227
Merge pull request #691 from jskeet/xml-documentation
...
Document everything, and turn on errors if we fail to document anything in the future
9 years ago
Jon Skeet
30e8157550
Fix one cref that Mono was unhappy with
9 years ago
Jan Tattermusch
95910f1c7d
Merge pull request #684 from jskeet/unused
...
Fix build warnings around unused variables
9 years ago
Jon Skeet
811fc89f0e
Document everything, and turn on errors if we fail to document anything in the future.
9 years ago
Jon Skeet
99a81d297c
Fix build warnings around unused variables
9 years ago
Feng Xiao
dc80689af3
Merge pull request #653 from airtimemedia/master
...
Various compilation fixes
9 years ago
Jon Skeet
b59bfcb309
Merge pull request #681 from jskeet/json-fieldmask
...
JSON formatting for FieldMask
9 years ago
Jon Skeet
8136ad5c3c
Merge pull request #677 from jskeet/move-protos
...
Remove a redundant layer of directory hierarchy.
9 years ago
Jon Skeet
415f72e079
Merge pull request #680 from jskeet/aptca
...
Allow partially-trusted callers again.
9 years ago
Jon Skeet
0e30de3d6b
JSON formatting for FieldMask
9 years ago
Jon Skeet
db9f47a3ed
Merge pull request #678 from jskeet/stream-ctor
...
Expose Coded*Stream constructors directly.
9 years ago
Jon Skeet
0e0e0c97e7
Expose Coded*Stream constructors directly.
9 years ago
Jon Skeet
0f370b468b
Remove a redundant layer of directory hierarchy.
9 years ago
Jon Skeet
e94bdd9303
Allow partially-trusted callers again.
...
Fixes issue #552 . (And yay, it looks like our build profile supports this...)
9 years ago
Jon Skeet
bf1cc9217a
Merge pull request #675 from jtattermusch/signing
...
Add ReleaseSigned configuration for C#
9 years ago
Jon Skeet
da776fbd1e
Merge pull request #672 from jskeet/json-struct
...
Formatting of Struct as JSON
9 years ago
Jon Skeet
e7caf15577
Initial pass at formatting Struct as JSON.
...
This seems remarkably little code, but it appears to work. I can add tests for invalid structs at some point, once the general approach is approved.
9 years ago
Jon Skeet
115e6c735e
Merge pull request #671 from jskeet/json-time
...
JSON formatting for Timestamp and Duration
9 years ago
Jon Skeet
801b169bce
Addressed issues raised in code review. Will merge when green.
9 years ago
Jon Skeet
16e272e0c4
Format JSON for Duration and Timestamp.
...
This is taking an approach of putting all the logic in JsonFormatter. That's helpful in terms of concealing the details of whether or not to wrap the value in quotes, but it does lack flexibility. I don't *think* we want to allow user-defined formatting of messages, so that much shouldn't be a problem.
9 years ago
Jan Tattermusch
e61b528b5a
Update Makefile.am
9 years ago
Jan Tattermusch
d331d2f60f
make changes and fixes in signing
9 years ago
Jan Tattermusch
0df900f0dc
added protoc.exe and well known protobuf files to the nuspec file
9 years ago
Jan Tattermusch
538ef54f1e
build signed assemblies
9 years ago
Jan Tattermusch
80f89b4ecf
Merge pull request #669 from jskeet/simpify-json-tests
...
Simpify json tests
9 years ago
Jan Tattermusch
82aa6bbdfc
Merge pull request #668 from jskeet/json_ordering
...
Fix C# JSON field ordering
9 years ago
Paul Yang
bfbf35da9e
Merge pull request #643 from yukawa/fix_win_unicode_build
...
Fix build failure on Windows when Unicode build is enabled.
9 years ago
Jan Tattermusch
abd7083b0c
Merge pull request #667 from jskeet/fix-field-orderings
...
Fix trivial bug in field orderings.
9 years ago
Jon Skeet
6cf5f660e5
Simplify the JSON tests for readability
...
Use ' instead of " in the expected JSON, then replace it before asserting.
9 years ago
Jon Skeet
4fed0b515f
Fix JSON formatting to always emit fields in field order, including oneofs
9 years ago
Jon Skeet
fd02e45b2a
Fix trivial bug in field orderings.
...
(Shows the benefit of unit testing even code "too simple to fail"...)
9 years ago
Jon Skeet
c20f67fdb4
Merge pull request #666 from jskeet/wkt-times
...
Well-known type operations for Timestamp and Duration
9 years ago
Jon Skeet
9629797331
Well-known type operations for Timestamp and Duration (but not JSON formatting).
...
While I've provided operators, I haven't yet provided the method equivalents. It's not clear to me that
they're actually a good idea, while we're really targeting C# developers who definitely *can* use the user-defined operators.
9 years ago
Jon Skeet
5bdb1fb311
Merge pull request #665 from jskeet/types_field
...
Handle field names of "descriptor" and "types".
9 years ago
Jon Skeet
f994cfe808
Handle field names of "descriptor" and "types".
9 years ago
Yohei Yukawa
8c27eea686
Fix build failure on Windows when Unicode build is enabled.
...
This is a follow up CL for e9abc404df
,
which breaks build when UNICODE macro is defined.
protoc has explicitly called MBCS version of APIs / funcsions
rather than UTF-16 (wchar_t) version of them regardless of
UNICODE macro definition (and it indeed works as expected).
Hence it makes sense to call GetModuleFileNameA explicitly.
9 years ago
Jan Tattermusch
b193503aa7
Merge pull request #664 from jtattermusch/expose_umbrella_class_name2
...
Expose GetUmbrellaClassName in csharp_names.h
9 years ago
Jan Tattermusch
43a2dee708
refactor umbrella class helpers
9 years ago
Jan Tattermusch
12febd0a76
Merge pull request #632 from google/csharp-experimental
...
Merge C# proto3 from csharp-experimental to master
9 years ago
Jan Tattermusch
bde01d5326
Merge pull request #660 from jskeet/throw-on-null
...
Throw on null for string/bytes single fields
9 years ago
Tom Hughes
c6095505dc
Move pthread include.
...
Based on pull request feedback. See commit 60c5222
for why the pthread
header is necessary.
9 years ago
Jon Skeet
d18cc08456
Generated code for previous commit.
9 years ago