oracle_event_engine_posix_test.cc
Go to the documentation of this file.
1 // Copyright 2022 gRPC authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 
18 
19 int main(int argc, char** argv) {
20  testing::InitGoogleTest(&argc, argv);
22  auto ee_factory = []() {
23  return absl::make_unique<
25  };
26  SetEventEngineFactories(/*ee_factory=*/ee_factory,
27  /*oracle_ee_factory=*/ee_factory);
28  return RUN_ALL_TESTS();
29 }
SetEventEngineFactories
void SetEventEngineFactories(std::function< std::unique_ptr< grpc_event_engine::experimental::EventEngine >()> factory, std::function< std::unique_ptr< grpc_event_engine::experimental::EventEngine >()> oracle_ee_factory)
Definition: event_engine_test.cc:26
oracle_event_engine_posix.h
generate.env
env
Definition: generate.py:37
main
int main(int argc, char **argv)
Definition: oracle_event_engine_posix_test.cc:19
absl::make_unique
memory_internal::MakeUniqueResult< T >::scalar make_unique(Args &&... args)
Definition: third_party/abseil-cpp/absl/memory/memory.h:168
event_engine_test.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
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
grpc_event_engine::experimental::PosixOracleEventEngine
Definition: oracle_event_engine_posix.h:142


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:46