summaryrefslogtreecommitdiff
path: root/grpc/tests
AgeCommit message (Collapse)AuthorFilesLines
2021-05-10Updated main version numbers to 2.0Wouter van Oortmerssen1-2/+2
2021-03-25[grpc] Support latest version of grpc PoC (#6338)Jeong YunWon1-1/+2
* use grpcpp rather than deprecated grpc++ * grpcpp Deserialize take ByteBuffer instead of grpc_byte_buffer * grpc 1.36.0 * Fix to use grpc 1.36.0 * Fix CMakeLists to refer gRPC * add find_package(Threads) * Update bazel deps * Apply workaround about boringssl build error * Install latest cmake for osx on travis-ci Co-authored-by: Yeom Gyusun <omniavinco@gmail.com>
2021-02-19[Go] Working on a go example plus fixing go grpc code (#6448)mustiikhalil1-1/+3
Implemented server.go and half implemented client.go Finishes implementation for greeter go example Update grpc code for monster.fbs Adds a couple of cpp methods Adhere to gofmt standards Adds a readme for issues with grpc
2020-10-15fix(go_test): remove deprecated grpc call (#6183)Niels Hofmans1-1/+2
2020-10-12Bump junit from 4.12 to 4.13.1 in /grpc/tests (#6173)dependabot[bot]1-1/+1
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21Allow to run cpp tests under grpc/tests/ using bazel. (#6040)Shengzhe1-0/+17
This is the first step to upgrade grpc dependency to the latest version. - Patch protobuf 3.6.1. and grpc 1.15.1 to fix build errors when using the latest Bazel version (3.4.1). - Add grpc/tests:grpc_test. One can kick off tests in Bazel by calling `bazel test grpc/tests/...`. - Add missing build targets in tests/BUILD in order to support grpc/tests/BUILD
2020-03-12pre-tag version bump for 1.12v1.12.0Wouter van Oortmerssen1-2/+2
Change-Id: I84a9365e9d8a1afe333b1df85058401ffe0a6b7c
2020-03-02Added --filename-suffix and --filename-ext to flatc (#5778)Derek Bailey1-5/+5
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Added --filename-suffix and --filename-ext to flatc * Fixed typo and added example generation of suffix and extension for C++ * Removed extra ; * Removed clang-format block from a region that didn't need it. Fixed an auto format of another clang-format block * Added docs, fixed pointer alignment, removed suffix test file
2019-12-23Add flatc '--cpp_std' switch (#5656)Vladimir Glavnyy1-26/+36
* Add flatc '--cpp_std' switch and sandbox for C++17 code generator - Added 'flac --cpp_std legacy' for compatibility with old compilers (VS2010); - Added experimental switch 'flac --cpp_std c++17' for future development; - Added C++17 sandbox test_cpp17.cpp; - C++ code generator generates enums with explicit underlying type to avoid problems with the forward and backward schema compatibility; - Adjusted CMakeLists.txt, CI and generate code scripts to support of introduced '--cpp_std'; * Fix --cpp_std values: c++0x, c++11, c++17 * Add 'cpp::CppStandard' enum * Add testing engine into test_cpp17 * Rebase to upstream/master * Set default '--cpp-std C++0x' * Fix code generation (--cpp_std C++11) in CMakeLists.txt - Fix dependency declaration of grpctest target * Revert --cpp-std for the tests from explicit C++11 to flatc default value (C++0x)
2019-11-14Support for python grpc - continuing the work from the pull request #4270 ↵Malar Kannan1-0/+174
#4705 (#5613) * Support for python grpc * add few fixes * Fixes build * Fix python generator * Add tests * Fix grpc python test * Fix tests and add incomplete python generator * Fix python generator * Add python generator methods * Fix Appveyor build * grpc python support v0.1 * Update tests * update grpctest * Remove duplicated code and fix a brace * tests for flatbuffers grpc python * Updated tests + removed SerializeToString, From String * remove pickle import * include missing files in ci - BUILD and generated test result
2019-11-11Ran src/clang-format-all.sh (#5617)Derek Bailey2-83/+100
2019-11-04Fixed deprecated method in GRPC Java test.Wouter van Oortmerssen1-3/+3
Change-Id: Iccae8fe9409adbf3cd3013a5cf3368e068175ad3
2019-05-31Enforce matching version in Java and C#.Wouter van Oortmerssen1-2/+2
Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
2019-04-24Bumped version to 1.11.0v1.11.0Wouter van Oortmerssen1-2/+2
Change-Id: I0c87ad2cf8f8768cf40c5b7abea0add087a5518a
2019-02-05Removing 'using namespace' usage in test_builder (#5154)Charlie Harrison1-0/+4
* Removing 'using namespace' usage in test_builder * Fix GRPC tests
2018-11-29Fix Java generator bug that ignores bidi streaming attribute (#5063)Sumant Tambe2-37/+202
* Fix Java generator bug that ignores streaming: bidi attribute Tests * Java gRPC client streaming test * Java gRPC Bidi Streaming Test
2018-10-25Fixed Java gRPC version numbers.Wouter van Oortmerssen1-1/+1
Change-Id: Iff00a48b370f45f80d68e6c6929483d608ce1885
2018-10-22Use stdlib context in generated Go files (#4904)Felix Hanley1-1/+1
2018-10-18Efficient Conversion of a FlatBufferBuilder to a MessageBuilder (#4980)Sumant Tambe2-82/+245
* Efficient conversion of FlatBufferBuilder to grpc::MessageBuilder * Added a variety of tests to validate correctness of the MessageBuilder move operations. Disable MessageBuilder half-n-half tests on MacOS. * Fix failing Android build * Generalized the MessageBuilder move constructor to accept a deallocator
2018-10-03Bumped version to 1.10.1 for all languages.v1.10.0Wouter van Oortmerssen1-1/+1
Change-Id: I9a6256d90ea800834a887afdcf888df412018933
2018-09-24Add FlatBufferBuilder move semantics tests to the main test suite (#4902)Sumant Tambe2-129/+168
* Add FlatBufferBuilder move semantics tests to main Do not eagerly delete/reset allocators in release and release_raw functions Update android, vs2010 build files New tests for various types of FlatBufferBuilders and move semantics * Improve test failure output with function names
2018-08-30Add move semantics to MessageBuilder, FlatBufferBuilder, SliceAllocator, and ↵Sumant Tambe2-1/+166
vector_downward (#4893) Unit tests Update flatbuffers + gRPC build instructions Update CMakeLists.txt with cmake variables for grpc and protobuf install paths Update tests for travis build
2018-05-07Several pom.xml files did not have their version bumped to 1.9.0Wouter van Oortmerssen1-2/+2
Change-Id: I7c9bb5406ae8df951afe12a008f0d071e0195bfa
2017-12-28new maven jar called flatbuffers-java-grpc which contains utility … (#4558)Yuri Finkelstein3-0/+196
* new maven jar called flatbuffers-java-grpc which contains utility class supporting generated code for grpc over flatbuffers; grpc java unit test based on maven and junit (maven is used only for simplicity of testing); removed straneous namespace_test/NamespaceA/TableInC.java which is not longer used in the test and no longer generated but contains complilation errors if java compiler picks it up * moved java grpc tests files according to review request * Added missing generated code for Java gRPC. Change-Id: Iada090fe2e99b80a4b7c2f8e39c838a992a1feae * added missing name and url
2017-12-21Made all C++ files clang-formatted.Wouter van Oortmerssen1-31/+33
Also added missing generated files. Change-Id: Ifd22a643a08e3f2edfce92812ed57b87fc0e1875
2017-06-07[C++] Improve flatbuffers + gRPC integration (#4310)Lawrence Chan1-22/+30
* Rework flatbuffers + gRPC integration - Introduce `flatbuffers::grpc::Message<T>`, a `grpc_slice`-backed message buffer that handles refcounting and allows flatbuffers to transfer ownership to gRPC efficiently. This replaces `flatbuffers::BufferRef<T>`, which required a copy call and was also unsafe w.r.t. buffer lifetime. - Introduce `flatbuffers::grpc::MessageBuilder`, a gRPC-specific builder that forces a `grpc_slice`-backed allocator and also adds some helpful `Message<T>`-related methods. - Update serializers accordingly (now zero-copy between flatbuffers and gRPC). * gRPC: verify messages by default, but allow user to override * gRPC: fix some formatting issues * Disable verification by default, but add helper method * Make FlatBufferBuilder fields protected + remove vec accessor * Use bool add_ref parameter to toggle refcount incr * Remove unnecessary inline specifiers * Fix formatting * Use auto * Remove empty lines * Use grpc_slice helper macros * Simplify reset code * Disable Message copy ctor and assignment by default * Remove unused member * Enable gRPC verification by default * Use auto * Bake in message verification (remove template specialization) * Add RoundUp func * Consolidate gRPC message copy flag * Make vector_downward allocations fully lazy * Test message verification failure code/message * Add grpctest verification test comments * Simplify reallocate implementation * Make initial_size a size_t * Use ternary op for growth_policy * Use truthiness rather than dont explicit nullptr check * Indent preprocessor directives * Remove grpc message copy/assignment * Fix a few bugs * Add gRPC example * Add basic gRPC docs * Use doxygen EXAMPLE_PATH + @include * Reference example fbs in grpc docs * Move gRPC examples into grpc/samples * Fix pointer/reference formatting * Use std::function rather than templated callback func * Create fresh message builder for each request * Use Clear() in Reset() impl * Use FLATBUFFERS_CONSTEXPR
2017-05-08[C++] Add grpc/streaming test and fix Deserialize (#4296)水樹素子1-22/+53
* [C++] Add delete msg->buf * [C++] Add grpc streaming test * Use free instead of delete * Refactoring grpctest
2016-12-28Fix C++ gRPC test with streaming method (#4123)CarsarSky1-1/+1
2016-12-21Go related style fixes.wvo1-6/+5
Change-Id: Ie854ace69a21ef685e1ade5584f9d9ce4e8b41f1
2016-12-05Support for Golang GRPC (Experimental) (#4082)Ronak Jain1-0/+94
* support for grpc golang * refactored grpc go generator * added grpc-go test and refactored * refactored idl_gen_grpc.cpp * fixed grpc generate method name * refactored flatc and fixed line length issue * added codec to go lib and fixed formatting issues * fixed spacing issues
2016-06-29Added GRPC code generator to flatc.Wouter van Oortmerssen1-0/+124
Also added simple (in-process) test. Change-Id: I38580d554dd52f590e3396ec4846e07546dcf07d Tested: on Linux.