Go to the documentation of this file.
24 #include "absl/memory/memory.h"
25 #include "gtest/gtest.h"
35 TEST(PeriodicUpdateTest, SimpleTest) {
36 std::unique_ptr<PeriodicUpdate> upd;
47 if (upd->Tick())
break;
56 for (
int i = 0;
i < 10;
i++) {
59 if (upd->Tick())
break;
73 std::unique_ptr<PeriodicUpdate> upd;
74 std::atomic<int>
count(0);
85 std::vector<std::thread>
threads;
86 for (
size_t i = 0;
i < 10;
i++) {
88 while (
count.load() < 10) {
90 if (upd->Tick()) count.fetch_add(1);
113 int main(
int argc,
char** argv) {
void grpc_set_default_iomgr_platform()
GPRAPI void gpr_log_verbosity_init(void)
int main(int argc, char **argv)
#define EXPECT_LE(val1, val2)
static uv_thread_t * threads
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
static constexpr Duration Milliseconds(int64_t millis)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
grpc_core::ExecCtx exec_ctx
static constexpr Duration Seconds(int64_t seconds)
#define EXPECT_GE(val1, val2)
TEST(ServiceConfigParserTest, DoubleRegistration)
GPRAPI void gpr_time_init(void)
static uv_thread_t thread
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:42