Commit Graph

56 Commits

Author SHA1 Message Date
Vijay Pai 8aff94558c
De-experimentalize C++ callback API (#25728)
* De-experimentalize callback API

* Make FromServerContext based on ServerContextBase

* Fix lambda

* Fix headers

* De-experimentalize tests

* clang-format

* Fix consistency checks

* wip

* Fix const-ness of callback client read RPC requests

* Fix golden file

* Give full route_guide callback client example with Hold etc

* Complete example route-guide server

* De-experimentalize test services

* Omit unneeded using

* Remove some uses of non-experimental macro from test

* clang-format examples

* De-experimentalize async stub calls

* Remove experimental namespace use in qps, ubms

* De-experimentalize alarms, generic stubs, and context allocator

* De-experimentalize SetContextAllocator

* clang-format

* Fix conflicts

* Leave obsolete API in place until users can be migrated
2021-05-27 14:55:25 -07:00
Esun Kim 2ff84ed8c2 C++ cast for void* 2020-11-30 17:29:15 -08:00
Mark D. Roth 27e1c1c56d clang-tidy: enable google-readability-braces-around-statements 2020-11-06 13:41:44 -08:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
Vijay Pai 9ccc6b0e38 Properly set up deadline for generic requests 2019-12-19 18:54:35 -08:00
Vijay Pai 2c87eaabd4 De-experimentalize generic features of callback API under an ifdef 2019-12-03 12:24:13 -08:00
Vijay Pai be6979202b Revamp server-side C++ callback API, message allocator, and mocking 2019-11-20 16:56:18 -08:00
Vijay Pai 176dfc2289 Remove unused parameter warning (15 of 20) 2019-10-17 08:51:50 -07:00
Vijay Pai 5d7e4bb301 Stop using deprecated gtest macros 2019-09-24 14:56:41 -07:00
Prashant Jaikumar 9f02fc7f91 Enable end2end C++ tests on iOS.
Some e2e tests were disabled on iOS because they hit the Apple CFStream bug.
This commit enables e2e tests and works around the Apple bug by disabling CFStream.
2019-09-05 13:43:45 -07:00
Karthik Ravi Shankar 60bdeef9f4 Move Channel also to impl for now 2019-04-23 14:03:06 -07:00
Karthik Ravi Shankar 603d014f0e Changes to fold credentials into grpc_impl from grpc 2019-04-23 13:54:26 -07:00
Vijay Pai 05d8ddfc6e Support callback-based generic service 2019-03-04 13:13:12 -08:00
yang-g e75fc243da change tests to use the new class instead of grpc_test_init 2018-11-30 08:57:38 -08:00
ncteisen a0a59537d2 s/CodegenGeneric/Raw/g 2018-06-28 18:52:01 -07:00
ncteisen a6194db176 Add codegen generic to hybrid tests 2018-06-20 07:59:05 -07:00
Vijay Pai c90a85649b Change grpc++ references in names to grpcpp 2018-03-08 22:04:59 -08:00
Noah Eisen be82e64b3d Autofix c casts to c++ casts 2018-02-09 09:16:55 -08:00
ncteisen 9bee3086c3 Make stream responses togglable via context 2017-07-05 10:33:21 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Nicolas "Pixel" Noble 3726e3d37b Moving gtest include down.
In some cases, depending on the direction of the wind, and the phase of the moon, gtest can interfere with protobuf badly with macros cross-pollution between the two projects. Moving the gtest inclusion at the end makes the problem go away.
2017-05-10 18:33:12 +02:00
Vijay Pai 713c7b87e1 clang-format 2016-11-01 16:33:18 -07:00
Vijay Pai c0b2acb1a0 Use C++11 final and override 2016-11-01 16:31:56 -07:00
Vijay Pai 96e03110db clang-format 2016-10-13 14:09:16 -07:00
Vijay Pai 8d08b1d9ee Test all split streamed variations 2016-10-13 12:19:30 -07:00
Vijay Pai 65a9ef16ed Fix channel/stub for dup service use 2016-10-13 12:00:32 -07:00
Vijay Pai 61536a7371 Making split streaming testable 2016-10-13 11:04:57 -07:00
Mark D. Roth 9477724003 Change C++ API to expose wait_for_ready instead of fail_fast. 2016-09-27 13:07:00 -07:00
Nicolas "Pixel" Noble 5928bff0c7 Merge branch 'v1.0.x' of https://github.com/grpc/grpc into manual-upmerge 2016-09-08 01:58:49 +02:00
murgatroid99 7c5befd86b Change UnimplementedService to UnimplementedEchoService in echo.proto 2016-09-01 17:09:47 -07:00
Vijay Pai d4d5f4cd53 clang-format 2016-08-29 16:59:21 -07:00
Vijay Pai a9c0d7f88b Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
violating the appearance of unary-ness)
2016-08-29 16:42:04 -07:00
Vijay Pai 5d94118d0d clang-format 2016-08-04 11:48:47 -07:00
Vijay Pai ff91dea149 Be able to specify FCUnaryService just like AsyncService so that all
relevant methods get treated this way.
2016-08-04 11:07:50 -07:00
Vijay Pai 2d04dd827c Change API for next message size to allow a bool return value for failure
cases.
2016-07-27 11:35:56 -07:00
vjpai c0c38b1f19 Make the FCUnary class actually work and test it 2016-06-23 17:27:11 -07:00
Vijay Pai 20bf126da6 clang-format 2016-06-15 22:21:48 -07:00
vjpai e44d53757a De-lambda-ify 2016-06-15 22:15:00 -07:00
Craig Tiller bc7593de7a Revert "Revert "Remove spam""
This reverts commit e76528ce26.
2016-05-21 13:05:44 -07:00
Craig Tiller 34c6e87598 Simpler trick to force a listening cq 2016-05-21 13:05:01 -07:00
Craig Tiller e76528ce26 Revert "Remove spam"
This reverts commit 3f3312e7e9.
2016-05-21 12:43:17 -07:00
Craig Tiller 3f3312e7e9 Remove spam 2016-05-21 12:35:29 -07:00
Craig Tiller ae09d9dca9 Fixes and code simplification 2016-05-20 22:23:37 -07:00
Craig Tiller e004958fd6 Fix formatting, mem leak, stall 2016-05-20 10:31:09 -07:00
Sree Kuchibhotla 1f5e262589 Add the option of adding a non-listening server completion queue. This makes writing certain test cases (like hybrid_end2end tests) easier 2016-04-21 12:28:15 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
Craig Tiller e1c2d6a6df Fix clang3.7/tsan compile failure 2016-02-03 11:18:29 -08:00
David Garcia Quintas f3ddb7c55a clang-format 2016-01-20 16:02:22 -08:00
yang-g b971173712 Add tests with a second service 2016-01-15 16:53:08 -08:00
yang-g ad63510102 Add a test with two methods generic 2016-01-15 13:11:37 -08:00