codegen_test_full.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2017 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <gtest/gtest.h>
20 
21 #include <grpc/support/time.h>
23 
25 
26 namespace grpc {
27 namespace {
28 
29 class CodegenTestFull : public ::testing::Test {};
30 
31 TEST_F(CodegenTestFull, Init) {
33  void* tag = nullptr;
34  bool ok = false;
35  cq.AsyncNext(&tag, &ok, gpr_time_0(GPR_CLOCK_REALTIME));
37 }
38 
39 } // namespace
40 } // namespace grpc
41 
42 int main(int argc, char** argv) {
44  ::testing::InitGoogleTest(&argc, argv);
45  return RUN_ALL_TESTS();
46 }
generate.env
env
Definition: generate.py:37
grpc
Definition: grpcpp/alarm.h:33
gpr_time_0
GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)
Definition: src/core/lib/gpr/time.cc:47
google::protobuf::python::cmessage::Init
static int Init(CMessage *self, PyObject *args, PyObject *kwargs)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:1287
time.h
testing::Test
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:402
tag
static void * tag(intptr_t t)
Definition: bad_client.cc:318
completion_queue.h
RUN_ALL_TESTS
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:2471
test_config.h
main
int main(int argc, char **argv)
Definition: codegen_test_full.cc:42
testing::InitGoogleTest
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition: bloaty/third_party/googletest/googletest/src/gtest.cc:6106
grpc::testing::TestEnvironment
Definition: test/core/util/test_config.h:54
ASSERT_FALSE
#define ASSERT_FALSE(condition)
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:1976
ok
bool ok
Definition: async_end2end_test.cc:197
grpc::CompletionQueue
Definition: include/grpcpp/impl/codegen/completion_queue.h:104
GPR_CLOCK_REALTIME
@ GPR_CLOCK_REALTIME
Definition: gpr_types.h:39
cq
static grpc_completion_queue * cq
Definition: test/core/fling/client.cc:37
TEST_F
#define TEST_F(test_fixture, test_name)
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:2367


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:50