Commit Graph

148 Commits

Author SHA1 Message Date
donnadionne 1835f00ef1
Revert "Revert "Made grpc_core::Mutex compatible to absl::Mutex" (#25537)" (#25549)
This reverts commit 8e268dcec8.
2021-02-24 16:49:34 -08:00
donnadionne 8e268dcec8
Revert "Made grpc_core::Mutex compatible to absl::Mutex" (#25537)
* Revert "Made grpc_core::Mutex compatible to absl::Mutex"

This reverts commit 0b53341328.

* Revert "Added thread annotation (#25486)"

This reverts commit 9d897cb1a5.

* Revert "Fix a race in resolve_address and resolve_address_posix tests"

This reverts commit 6d8e7d3819.

* Restore 25398

* restore 25398
2021-02-24 10:32:49 -08:00
Esun Kim 0b53341328 Made grpc_core::Mutex compatible to absl::Mutex 2021-02-10 09:56:55 -08:00
Esun Kim 6dc1748f6c
Revert "Made grpc_core::Mutex compatible to absl::Mutex" 2021-02-10 07:53:02 -08:00
Esun Kim 6a1518bd22 Made grpc_core::Mutex compatible to absl::Mutex 2021-02-08 16:15:53 -08:00
Esun Kim e0d8c498a6 C++ cast for others 2020-11-30 17:36:21 -08:00
Esun Kim 8e9e895ffc Replace grpc_shutdown_blocking with grpc_shutdown 2020-10-08 10:57:05 -07:00
Jan Tattermusch afda101854 cleanup bazel commands in test scripts (for non-RBE invocations) 2020-08-20 12:22:09 +02:00
ZhenLian 5438a00d38 fix MSAN error 2020-08-15 20:11:21 -07:00
ZhenLian 0cdc36f64f ALTS peer attributes plumbing 2020-08-14 17:27:57 -07:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
Mark D. Roth cc6414893c update bazel build dep, regenerate upb files, and add missing includes 2020-06-02 14:48:50 -07:00
Jan Tattermusch 380a362417 dont build time_jump_test on windows 2020-02-26 19:56:49 -05:00
Esun Kim 257411aa2d Fix test flakiness 2020-01-28 19:53:29 -08:00
Vijay Pai 3b7286f1a1 Alarm callback should run on executor 2020-01-21 23:52:47 -08:00
Zhen Lian 618771dc6a [Exposing ALTS Context 2/2] Utility Wrapper Class
This PR contains:

1. An ALTS context exposed for users to use, and a GetAltsContextFromAuthContext() function to get ALTS context from an AuthContext. Functionality-wise this part is similar with a previous PR https://github.com/grpc/grpc/pull/21536, but in this PR, we adjusted the code structure and made some minor changes to better suit function clientAuthzCheck()
2. A clientAuthzCheck() function for users to check if the server is authorized
2020-01-03 09:30:46 -08:00
Guantao Liu b341ddf72b
Revert "[Exposing ALTS Context 2/2] Utility Wrapper Class" 2019-12-16 15:29:27 -08:00
Zhen Lian 98391c8f76 [Exposing ALTS Context 2/2] Utility Wrapper Class 2019-12-13 13:31:38 -08:00
Juanli Shen d0578ceb31
Merge pull request #21298 from grpc/revert-21196-zhen_alts_context_C++_2
Revert "[Exposing ALTS Context 2/2] Provide a Utility Function to Get Context"
2019-11-27 09:08:35 -08:00
Jan Tattermusch aa40b1c8b8
Merge pull request #20510 from jtattermusch/bazel_test_on_mac
Start running bazel C/C++ tests on mac
2019-11-27 12:09:43 +01:00
Nicolas Noble e3095a15ce
Revert "[Exposing ALTS Context 2/2] Provide a Utility Function to Get Context" 2019-11-26 10:32:24 -08:00
Zhen Lian fe9576c861 [Exposing ALTS Context 2/2] Provide a Utility Function to Get Context 2019-11-25 15:56:33 -08:00
Prashant Jaikumar 2526dfade5 WIP: Make core and C++ tests work with bazel on Mac OS 2019-11-25 13:35:26 +01:00
Prashant Jaikumar c9117fa198 Fix C++ tests to enable running on android 2019-11-14 16:20:33 -08:00
Jan Tattermusch 44f6b99d07 disable flaky timer_test on windows 2019-11-06 10:16:01 -05:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
Vijay Pai 2ded8cbadf Remove unused parameter warning (14 of 20) 2019-10-17 08:51:44 -07:00
Jan Tattermusch 3080419c90 temporarily disable alarm_test 2019-09-30 13:28:01 +02:00
Jan Tattermusch 24b529e408
Merge pull request #20343 from jtattermusch/bazel_tests_uses_polling
Set "uses_polling" arg for bazel tests
2019-09-30 08:13:31 +02:00
Vijay Pai 5d7e4bb301 Stop using deprecated gtest macros 2019-09-24 14:56:41 -07:00
Jan Tattermusch 6ebc1c616f set uses_polling=False for some bazel tests 2019-09-24 09:50:00 +02: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
Prashant Jaikumar 2e1cb0d91a Don't run time_jump_test under sanitizers 2019-08-30 11:43:21 -07:00
Prashant Jaikumar d2b5fd75f0 Added test for time jumps 2019-08-29 22:41:06 -07:00
Prashant Jaikumar 4dfa808e75 Add test for timer expiry racing with cancelation 2019-08-28 17:09:42 -07:00
Prashant Jaikumar 2b9ab6d10c timer_test: add test case for grpc shutdown while timer is pending 2019-08-23 13:54:16 -07:00
Prashant Jaikumar 9a41e12a4f Skip timer test when running under event manager 2019-08-22 18:41:38 -07:00
Prashant Jaikumar 41986e8ed8 Added test for timer wakeups 2019-08-20 15:51:02 -07:00
Prashant Jaikumar fbfb93c88f Fix C++ tests to run on iOS
- Define grpc_iomgr_run_in_background in iomgr_posix_cfstream.cc
- Use *_IF_SUPPORTED() for death tests
- Move global test init, teardown to SetUpTestCase, TearDownTestCase as GTMGoogleTestRun doesn't run main()
2019-06-20 18:16:20 -07:00
Bill Feng d93959853f Enabled Windows Bazel build for cpp tests 2019-03-21 18:00:48 -07:00
Jan Tattermusch cf6a311761
Revert "Windows builds for gRPC C++ tests" 2019-03-15 17:15:20 +01:00
billfeng327 4241edeaa4 renamed tag to no_windows in conformation with Bazel and TensorFlow 2019-03-07 14:52:49 -08:00
billfeng327 ab06853fc9 C++ Windows test builds 2019-03-06 15:47:49 -08:00
Vijay Pai 45c684f894 Allow an alarm to be set again after firing 2019-02-05 14:07:40 -08:00
yang-g d6dd6f25f4 Correctly reference the internal string for socket mutator arg 2018-12-20 15:37:30 -08:00
yang-g 038a71d826 Merge remote-tracking branch 'upstream/master' into gpr_test_util_to_grpc_test_util 2018-12-17 08:52:20 -08:00
Soheil Hassas Yeganeh 9decf48632 Move security credentials, connectors, and auth context to C++
This is to use `grpc_core::RefCount` to improve performnace.
This commit also replaces explicit C vtables, with C++ vtable
with its own compile time assertions and performance benefits.
It also makes use of `RefCountedPtr` wherever possible.
2018-12-13 10:38:12 -05:00
yang-g 7fc52366a0 Fix alarm_test 2018-12-07 10:01:54 -08:00
yang-g 67742ef63f Fix BUILD files. Manually edit bzl files 2018-12-06 14:37:52 -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