diff options
author | 2018-05-11 11:59:38 -0400 | |
---|---|---|
committer | 2018-05-17 15:07:52 -0700 | |
commit | 16b42ca9aae34a32187888783464cd8e692dc45e (patch) | |
tree | 77d2c97750728257ab375b6540b0f41ff0f35d06 /test/core/channel/channelz_registry_test.cc | |
parent | bba8840a4bfd0696ef257b5cce9ded4119aae9a6 (diff) |
Add skeleton gtest file
Diffstat (limited to 'test/core/channel/channelz_registry_test.cc')
-rw-r--r-- | test/core/channel/channelz_registry_test.cc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/test/core/channel/channelz_registry_test.cc b/test/core/channel/channelz_registry_test.cc new file mode 100644 index 0000000000..9372f76516 --- /dev/null +++ b/test/core/channel/channelz_registry_test.cc @@ -0,0 +1,58 @@ +/* + * + * Copyright 2017 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#include <stdlib.h> +#include <string.h> + +#include <gtest/gtest.h> + +#include <grpc/support/alloc.h> +#include <grpc/support/log.h> + +#include "src/core/lib/channel/channel_trace.h" +#include "src/core/lib/channel/channelz_registry.h" +#include "src/core/lib/gpr/useful.h" +#include "src/core/lib/iomgr/exec_ctx.h" +#include "src/core/lib/json/json.h" + +#include "test/core/util/test_config.h" +#include "test/cpp/util/channel_trace_proto_helper.h" + +#include <stdlib.h> +#include <string.h> + +namespace grpc_core { +namespace testing { + +// Tests basic ChannelTrace functionality like construction, adding trace, and +// lookups by uuid. +TEST(ChannelzRegistryTest, BasicTest) { + +} + +} // namespace testing +} // namespace grpc_core + +int main(int argc, char** argv) { + grpc_test_init(argc, argv); + grpc_init(); + ::testing::InitGoogleTest(&argc, argv); + int ret = RUN_ALL_TESTS(); + grpc_shutdown(); + return ret; +} |