ID
int64
0
2.65k
Language
stringclasses
1 value
Repository Name
stringclasses
14 values
File Name
stringlengths
2
48
File Path in Repository
stringlengths
11
111
File Path for Unit Test
stringlengths
16
116
Code
stringlengths
411
31.4k
Unit Test - (Ground Truth)
stringlengths
40
32.1k
100
cpp
google/cel-cpp
builtin_func_registrar
eval/public/builtin_func_registrar.cc
eval/public/builtin_func_registrar_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_BUILTIN_FUNC_REGISTRAR_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_BUILTIN_FUNC_REGISTRAR_H_ #include "absl/status/status.h" #include "eval/public/cel_function_registry.h" #include "eval/public/cel_options.h" namespace google::api::expr::runtime { absl::Status RegisterBuiltinFunct...
#include "eval/public/builtin_func_registrar.h" #include <memory> #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/arena.h" #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include...
101
cpp
google/cel-cpp
cel_attribute
eval/public/cel_attribute.cc
eval/public/cel_attribute_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CEL_ATTRIBUTE_PATTERN_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CEL_ATTRIBUTE_PATTERN_H_ #include <sys/types.h> #include <algorithm> #include <cstddef> #include <cstdint> #include <initializer_list> #include <memory> #include <optional> #include <string> #include <utility> #incl...
#include "eval/public/cel_attribute.h" #include <string> #include "google/protobuf/arena.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "eval/public/cel_value.h" #include "eval/public/structs/cel_proto_wrapper.h" #include "internal/status_macros.h" #include "internal/testing.h" namesp...
102
cpp
google/cel-cpp
string_extension_func_registrar
eval/public/string_extension_func_registrar.cc
eval/public/string_extension_func_registrar_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRING_EXTENSION_FUNC_REGISTRAR_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRING_EXTENSION_FUNC_REGISTRAR_H_ #include "absl/status/status.h" #include "eval/public/cel_function_registry.h" #include "eval/public/cel_options.h" namespace google::api::expr::runtime { absl::Status Re...
#include "eval/public/string_extension_func_registrar.h" #include <cstdint> #include <string> #include <vector> #include "google/api/expr/v1alpha1/checked.pb.h" #include "absl/types/span.h" #include "eval/public/builtin_func_registrar.h" #include "eval/public/cel_function_registry.h" #include "eval/public/cel_value.h" ...
103
cpp
google/cel-cpp
logical_function_registrar
eval/public/logical_function_registrar.cc
eval/public/logical_function_registrar_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_LOGICAL_FUNCTION_REGISTRAR_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_LOGICAL_FUNCTION_REGISTRAR_H_ #include "absl/status/status.h" #include "eval/public/cel_function_registry.h" #include "eval/public/cel_options.h" namespace google::api::expr::runtime { absl::Status RegisterLogi...
#include "eval/public/logical_function_registrar.h" #include <memory> #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/arena.h" #include "absl/base/no_destructor.h" #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #...
104
cpp
google/cel-cpp
cel_type_registry
eval/public/cel_type_registry.cc
eval/public/cel_type_registry_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CEL_TYPE_REGISTRY_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CEL_TYPE_REGISTRY_H_ #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "absl/strings/string_view.h" #in...
#include "eval/public/cel_type_registry.h" #include <cstddef> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/base/nullability.h" #include "absl/container/flat_hash_map.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #inc...
105
cpp
google/cel-cpp
matchers
eval/public/testing/matchers.cc
eval/public/testing/matchers_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_TESTING_MATCHERS_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_TESTING_MATCHERS_H_ #include <ostream> #include "google/protobuf/message.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" #include "eval/public/cel_va...
#include "eval/public/testing/matchers.h" #include "absl/status/status.h" #include "absl/time/time.h" #include "eval/public/containers/container_backed_list_impl.h" #include "eval/public/structs/cel_proto_wrapper.h" #include "eval/testutil/test_message.pb.h" #include "internal/testing.h" #include "testutil/util.h" name...
106
cpp
google/cel-cpp
cel_proto_wrap_util
eval/public/structs/cel_proto_wrap_util.cc
eval/public/structs/cel_proto_wrap_util_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_WRAP_UTIL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_WRAP_UTIL_H_ #include "eval/public/cel_value.h" #include "eval/public/structs/protobuf_value_factory.h" namespace google::api::expr::runtime::internal { CelValue UnwrapMessageToValue(const go...
#include "eval/public/structs/cel_proto_wrap_util.h" #include <cassert> #include <limits> #include <memory> #include <string> #include <utility> #include <vector> #include "google/protobuf/any.pb.h" #include "google/protobuf/duration.pb.h" #include "google/protobuf/empty.pb.h" #include "google/protobuf/struct.pb.h" #in...
107
cpp
google/cel-cpp
cel_proto_lite_wrap_util
eval/public/structs/cel_proto_lite_wrap_util.cc
eval/public/structs/cel_proto_lite_wrap_util_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_LITE_WRAP_UTIL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_LITE_WRAP_UTIL_H_ #include <optional> #include <string> #include <string_view> #include <type_traits> #include "google/protobuf/any.pb.h" #include "google/protobuf/duration.pb.h" #includ...
#include "eval/public/structs/cel_proto_lite_wrap_util.h" #include <cassert> #include <limits> #include <memory> #include <optional> #include <string> #include <string_view> #include <utility> #include <vector> #include "google/protobuf/any.pb.h" #include "google/protobuf/duration.pb.h" #include "google/protobuf/struct...
108
cpp
google/cel-cpp
protobuf_descriptor_type_provider
eval/public/structs/protobuf_descriptor_type_provider.cc
eval/public/structs/protobuf_descriptor_type_provider_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_PROTOBUF_DESCRIPTOR_TYPE_PROVIDER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_PROTOBUF_DESCRIPTOR_TYPE_PROVIDER_H_ #include <memory> #include <string> #include <utility> #include "google/protobuf/descriptor.h" #include "google/protobuf/message.h" #include "absl/bas...
#include "eval/public/structs/protobuf_descriptor_type_provider.h" #include <optional> #include "google/protobuf/wrappers.pb.h" #include "eval/public/cel_value.h" #include "eval/public/structs/legacy_type_info_apis.h" #include "eval/public/testing/matchers.h" #include "extensions/protobuf/memory_manager.h" #include "in...
109
cpp
google/cel-cpp
cel_proto_descriptor_pool_builder
eval/public/structs/cel_proto_descriptor_pool_builder.cc
eval/public/structs/cel_proto_descriptor_pool_builder_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_DESCRIPTOR_POOL_BUILDER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_DESCRIPTOR_POOL_BUILDER_H_ #include "google/protobuf/descriptor.pb.h" #include "google/protobuf/descriptor.h" #include "absl/status/status.h" namespace google::api::expr::runtim...
#include "eval/public/structs/cel_proto_descriptor_pool_builder.h" #include <string> #include <vector> #include "google/protobuf/any.pb.h" #include "absl/container/flat_hash_map.h" #include "eval/testutil/test_message.pb.h" #include "internal/testing.h" namespace google::api::expr::runtime { namespace { using testing::...
110
cpp
google/cel-cpp
field_access_impl
eval/public/structs/field_access_impl.cc
eval/public/structs/field_access_impl_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_FIELD_ACCESS_IMPL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_FIELD_ACCESS_IMPL_H_ #include "eval/public/cel_options.h" #include "eval/public/cel_value.h" #include "eval/public/structs/protobuf_value_factory.h" namespace google::api::expr::runtime::internal { absl:...
#include "eval/public/structs/field_access_impl.h" #include <array> #include <limits> #include <string> #include "google/protobuf/arena.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/message.h" #include "google/protobuf/text_format.h" #include "absl/status/status.h" #include "absl/strings/string_v...
111
cpp
google/cel-cpp
proto_message_type_adapter
eval/public/structs/proto_message_type_adapter.cc
eval/public/structs/proto_message_type_adapter_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_PROTO_MESSAGE_TYPE_ADAPTER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_PROTO_MESSAGE_TYPE_ADAPTER_H_ #include <string> #include <vector> #include "google/protobuf/descriptor.h" #include "google/protobuf/message.h" #include "absl/status/status.h" #include "absl/stri...
#include "eval/public/structs/proto_message_type_adapter.h" #include <vector> #include "google/protobuf/wrappers.pb.h" #include "google/protobuf/descriptor.pb.h" #include "absl/status/status.h" #include "base/attribute.h" #include "common/value.h" #include "eval/public/cel_value.h" #include "eval/public/containers/cont...
112
cpp
google/cel-cpp
cel_proto_wrapper
eval/public/structs/cel_proto_wrapper.cc
eval/public/structs/cel_proto_wrapper_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_WRAPPER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_CEL_PROTO_WRAPPER_H_ #include "google/protobuf/duration.pb.h" #include "google/protobuf/timestamp.pb.h" #include "google/protobuf/descriptor.h" #include "eval/public/cel_value.h" #include "internal/proto...
#include "eval/public/structs/cel_proto_wrapper.h" #include <cassert> #include <limits> #include <memory> #include <string> #include <utility> #include <vector> #include "google/protobuf/any.pb.h" #include "google/protobuf/duration.pb.h" #include "google/protobuf/empty.pb.h" #include "google/protobuf/struct.pb.h" #incl...
113
cpp
google/cel-cpp
legacy_type_provider
eval/public/structs/legacy_type_provider.cc
eval/public/structs/legacy_type_provider_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_TYPE_PROVIDER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_STRUCTS_TYPE_PROVIDER_H_ #include "absl/status/statusor.h" #include "absl/strings/cord.h" #include "absl/strings/string_view.h" #include "absl/types/optional.h" #include "common/memory.h" #include "common/type.h" #i...
#include "eval/public/structs/legacy_type_provider.h" #include <optional> #include <string> #include "eval/public/structs/legacy_any_packing.h" #include "eval/public/structs/legacy_type_info_apis.h" #include "internal/testing.h" namespace google::api::expr::runtime { namespace { class LegacyTypeProviderTestEmpty : publ...
114
cpp
google/cel-cpp
field_access
eval/public/containers/field_access.cc
eval/public/containers/field_access_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_FIELD_ACCESS_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_FIELD_ACCESS_H_ #include "eval/public/cel_options.h" #include "eval/public/cel_value.h" namespace google::api::expr::runtime { absl::Status CreateValueFromSingleField(const google::protobuf::Message* msg, ...
#include "eval/public/containers/field_access.h" #include <array> #include <limits> #include "google/protobuf/arena.h" #include "google/protobuf/message.h" #include "google/protobuf/text_format.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "absl/time/time.h" #include "eval/public/cel...
115
cpp
google/cel-cpp
container_backed_map_impl
eval/public/containers/container_backed_map_impl.cc
eval/public/containers/container_backed_map_impl_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_CONTAINER_BACKED_MAP_IMPL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_CONTAINER_BACKED_MAP_IMPL_H_ #include <memory> #include <utility> #include "absl/container/node_hash_map.h" #include "absl/status/statusor.h" #include "absl/types/span.h" #include "eval/pub...
#include "eval/public/containers/container_backed_map_impl.h" #include <string> #include <utility> #include <vector> #include "absl/status/status.h" #include "eval/public/cel_value.h" #include "internal/testing.h" namespace google::api::expr::runtime { namespace { using testing::Eq; using testing::IsNull; using testing...
116
cpp
google/cel-cpp
internal_field_backed_map_impl
eval/public/containers/internal_field_backed_map_impl.cc
eval/public/containers/internal_field_backed_map_impl_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_INTERNAL_FIELD_BACKED_MAP_IMPL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_INTERNAL_FIELD_BACKED_MAP_IMPL_H_ #include "google/protobuf/descriptor.h" #include "google/protobuf/message.h" #include "absl/status/statusor.h" #include "eval/public/cel_value.h" #inc...
#include "eval/public/containers/internal_field_backed_map_impl.h" #include <array> #include <limits> #include <memory> #include <string> #include <vector> #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "eval/public/structs/cel_proto_wrapper.h" #include "eval/testutil/test_message.pb.h" #inc...
117
cpp
google/cel-cpp
internal_field_backed_list_impl
eval/public/containers/internal_field_backed_list_impl.cc
eval/public/containers/internal_field_backed_list_impl_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_INTERNAL_FIELD_BACKED_LIST_IMPL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_PUBLIC_CONTAINERS_INTERNAL_FIELD_BACKED_LIST_IMPL_H_ #include <utility> #include "eval/public/cel_value.h" #include "eval/public/structs/protobuf_value_factory.h" namespace google::api::expr::runtime::...
#include "eval/public/containers/internal_field_backed_list_impl.h" #include <memory> #include <string> #include "eval/public/structs/cel_proto_wrapper.h" #include "eval/testutil/test_message.pb.h" #include "internal/testing.h" #include "testutil/util.h" namespace google::api::expr::runtime::internal { namespace { usin...
118
cpp
google/cel-cpp
create_struct_step
eval/eval/create_struct_step.cc
eval/eval/create_struct_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_STRUCT_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_STRUCT_STEP_H_ #include <cstdint> #include <memory> #include <string> #include <vector> #include "absl/container/flat_hash_set.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" n...
#include "eval/eval/create_struct_step.h" #include <cstdint> #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "absl/ty...
119
cpp
google/cel-cpp
const_value_step
eval/eval/const_value_step.cc
eval/eval/const_value_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONST_VALUE_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONST_VALUE_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "base/ast_internal/expr.h" #include "common/value.h" #include "common/value_manager.h" #include "eval/eval/direct_expression...
#include "eval/eval/const_value_step.h" #include <utility> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/time/time.h" #include "base/ast_internal/expr.h" #include "base/type_provider.h" #include "common/type_factory.h" #include "common/type_manager.h" #include "common/value_manager.h"...
120
cpp
google/cel-cpp
ident_step
eval/eval/ident_step.cc
eval/eval/ident_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_IDENT_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_IDENT_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "base/ast_internal/expr.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evalu...
#include "eval/eval/ident_step.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/status/status.h" #include "base/type_provider.h" #include "common/memory.h" #include "common/value.h" #include "eval/eval/attribute_trail.h" #include "eval/eval/cel_expression_flat_impl.h" #include ...
121
cpp
google/cel-cpp
function_step
eval/eval/function_step.cc
eval/eval/function_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_FUNCTION_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_FUNCTION_STEP_H_ #include <cstdint> #include <memory> #include <vector> #include "absl/status/statusor.h" #include "base/ast_internal/expr.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" #...
#include "eval/eval/function_step.h" #include <cmath> #include <cstdint> #include <memory> #include <string> #include <utility> #include <vector> #include "absl/strings/string_view.h" #include "base/ast_internal/expr.h" #include "base/builtins.h" #include "base/type_provider.h" #include "common/kind.h" #include "eval/e...
122
cpp
google/cel-cpp
create_list_step
eval/eval/create_list_step.cc
eval/eval/create_list_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_LIST_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_LIST_STEP_H_ #include <cstdint> #include <memory> #include <vector> #include "absl/container/flat_hash_set.h" #include "absl/status/statusor.h" #include "base/ast_internal/expr.h" #include "eval/eval/direct_expression...
#include "eval/eval/create_list_step.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "base/ast_internal/expr.h" #include "base/attribute.h" #include "base/attribute_set.h" #include "b...
123
cpp
google/cel-cpp
create_map_step
eval/eval/create_map_step.cc
eval/eval/create_map_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_MAP_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CREATE_MAP_STEP_H_ #include <cstddef> #include <cstdint> #include <memory> #include <vector> #include "absl/container/flat_hash_set.h" #include "absl/status/statusor.h" #include "eval/eval/direct_expression_step.h" #include "...
#include "eval/eval/create_map_step.h" #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "base/ast_internal/expr.h" #include "base/type_provider.h" #includ...
124
cpp
google/cel-cpp
regex_match_step
eval/eval/regex_match_step.cc
eval/eval/regex_match_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_REGEX_MATCH_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_REGEX_MATCH_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" #include "re2/re2.h" namespace google::api::expr:...
#include "eval/eval/regex_match_step.h" #include "google/api/expr/v1alpha1/checked.pb.h" #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/arena.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "eval/public/activation.h" #include "eval/public/builtin_func_registrar.h...
125
cpp
google/cel-cpp
attribute_trail
eval/eval/attribute_trail.cc
eval/eval/attribute_trail_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_ATTRIBUTE_TRAIL_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_ATTRIBUTE_TRAIL_H_ #include <string> #include <utility> #include "absl/types/optional.h" #include "absl/utility/utility.h" #include "base/attribute.h" namespace google::api::expr::runtime { class AttributeTrail { public: A...
#include "eval/eval/attribute_trail.h" #include <string> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "eval/public/cel_attribute.h" #include "eval/public/cel_value.h" #include "internal/testing.h" namespace google::api::expr::runtime { TEST(AttributeTrailTest, AttributeTrailEmptyStep) { std::string step =...
126
cpp
google/cel-cpp
evaluator_stack
eval/eval/evaluator_stack.cc
eval/eval/evaluator_stack_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_EVALUATOR_STACK_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_EVALUATOR_STACK_H_ #include <cstddef> #include <utility> #include <vector> #include "absl/base/optimization.h" #include "absl/log/absl_log.h" #include "absl/types/span.h" #include "common/value.h" #include "eval/eval/attribut...
#include "eval/eval/evaluator_stack.h" #include "base/attribute.h" #include "base/type_provider.h" #include "common/type_factory.h" #include "common/type_manager.h" #include "common/value.h" #include "common/value_manager.h" #include "common/values/legacy_value_manager.h" #include "extensions/protobuf/memory_manager.h"...
127
cpp
google/cel-cpp
lazy_init_step
eval/eval/lazy_init_step.cc
eval/eval/lazy_init_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_LAZY_INIT_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_LAZY_INIT_STEP_H_ #include <cstddef> #include <cstdint> #include <memory> #include "absl/base/nullability.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" namespace google::api::expr::runt...
#include "eval/eval/lazy_init_step.h" #include <cstddef> #include <vector> #include "absl/status/status.h" #include "base/type_provider.h" #include "common/value.h" #include "common/value_manager.h" #include "eval/eval/const_value_step.h" #include "eval/eval/evaluator_core.h" #include "extensions/protobuf/memory_manage...
128
cpp
google/cel-cpp
attribute_utility
eval/eval/attribute_utility.cc
eval/eval/attribute_utility_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_UNKNOWNS_UTILITY_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_UNKNOWNS_UTILITY_H_ #include "absl/status/statusor.h" #include "absl/types/span.h" #include "base/attribute.h" #include "base/attribute_set.h" #include "base/function_descriptor.h" #include "base/function_result_set.h" #incl...
#include "eval/eval/attribute_utility.h" #include <vector> #include "base/attribute_set.h" #include "base/type_provider.h" #include "common/type_factory.h" #include "common/value_manager.h" #include "common/values/legacy_value_manager.h" #include "eval/public/cel_attribute.h" #include "eval/public/cel_value.h" #include...
129
cpp
google/cel-cpp
logic_step
eval/eval/logic_step.cc
eval/eval/logic_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_LOGIC_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_LOGIC_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" namespace google::api::expr::runtime { std::unique_ptr<Direct...
#include "eval/eval/logic_step.h" #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/status/status.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "base/ast_internal/expr.h" #include "base/attribute.h" #include "base/attribute_set...
130
cpp
google/cel-cpp
comprehension_step
eval/eval/comprehension_step.cc
eval/eval/comprehension_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_COMPREHENSION_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_COMPREHENSION_STEP_H_ #include <cstddef> #include <cstdint> #include <memory> #include "absl/status/status.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" #include "eval/eval/expressi...
#include "eval/eval/comprehension_step.h" #include <memory> #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/struct.pb.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "base...
131
cpp
google/cel-cpp
evaluator_core
eval/eval/evaluator_core.cc
eval/eval/evaluator_core_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_EVALUATOR_CORE_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_EVALUATOR_CORE_H_ #include <cstddef> #include <cstdint> #include <memory> #include <utility> #include <vector> #include "absl/base/nullability.h" #include "absl/log/absl_check.h" #include "absl/status/status.h" #include "absl/...
#include "eval/eval/evaluator_core.h" #include <memory> #include <utility> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "base/type_provider.h" #include "eval/compiler/cel_expression_builder_flat_impl.h" #include "eval/eval/cel_expression_flat_impl.h" #include "eval/internal/interop.h" #include "eval/public/...
132
cpp
google/cel-cpp
optional_or_step
eval/eval/optional_or_step.cc
eval/eval/optional_or_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_OPTIONAL_OR_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_OPTIONAL_OR_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" #include "eval/eval/jump_step.h" namespace google...
#include "eval/eval/optional_or_step.h" #include <memory> #include "absl/memory/memory.h" #include "absl/status/status.h" #include "common/casting.h" #include "common/memory.h" #include "common/type_reflector.h" #include "common/value.h" #include "common/value_kind.h" #include "common/value_testing.h" #include "eval/ev...
133
cpp
google/cel-cpp
shadowable_value_step
eval/eval/shadowable_value_step.cc
eval/eval/shadowable_value_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_SHADOWABLE_VALUE_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_SHADOWABLE_VALUE_STEP_H_ #include <cstdint> #include <memory> #include <string> #include "absl/status/statusor.h" #include "common/value.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_cor...
#include "eval/eval/shadowable_value_step.h" #include <string> #include <utility> #include "absl/status/statusor.h" #include "base/type_provider.h" #include "common/value.h" #include "eval/eval/cel_expression_flat_impl.h" #include "eval/eval/evaluator_core.h" #include "eval/internal/interop.h" #include "eval/public/act...
134
cpp
google/cel-cpp
container_access_step
eval/eval/container_access_step.cc
eval/eval/container_access_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONTAINER_ACCESS_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_CONTAINER_ACCESS_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "base/ast_internal/expr.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" nam...
#include "eval/eval/container_access_step.h" #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/struct.pb.h" #include "absl/status/status.h" #include "base/builtins.h" #include "base/type_provider.h" #includ...
135
cpp
google/cel-cpp
select_step
eval/eval/select_step.cc
eval/eval/select_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_SELECT_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_SELECT_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "base/ast_internal/expr.h" #include "common/value.h" #include "common/value_manager.h" #include "eval/eval/direct_expression_step.h" #...
#include "eval/eval/select_step.h" #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "google/protobuf/wrappers.pb.h" #include "absl/log/absl_check.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #inc...
136
cpp
google/cel-cpp
ternary_step
eval/eval/ternary_step.cc
eval/eval/ternary_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_TERNARY_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_TERNARY_STEP_H_ #include <cstdint> #include <memory> #include "absl/status/statusor.h" #include "eval/eval/direct_expression_step.h" #include "eval/eval/evaluator_core.h" namespace google::api::expr::runtime { std::unique_ptr<Di...
#include "eval/eval/ternary_step.h" #include <memory> #include <string> #include <utility> #include <vector> #include "absl/base/nullability.h" #include "absl/status/status.h" #include "base/ast_internal/expr.h" #include "base/attribute.h" #include "base/attribute_set.h" #include "base/type_provider.h" #include "common...
137
cpp
google/cel-cpp
compiler_constant_step
eval/eval/compiler_constant_step.cc
eval/eval/compiler_constant_step_test.cc
#ifndef THIRD_PARTY_CEL_CPP_EVAL_EVAL_COMPILER_CONSTANT_STEP_H_ #define THIRD_PARTY_CEL_CPP_EVAL_EVAL_COMPILER_CONSTANT_STEP_H_ #include <cstdint> #include <utility> #include "absl/status/status.h" #include "common/native_type.h" #include "common/value.h" #include "eval/eval/attribute_trail.h" #include "eval/eval/direc...
#include "eval/eval/compiler_constant_step.h" #include <memory> #include "base/type_provider.h" #include "common/native_type.h" #include "common/type_factory.h" #include "common/type_manager.h" #include "common/value.h" #include "common/value_manager.h" #include "common/values/legacy_value_manager.h" #include "eval/eva...
138
cpp
google/cel-cpp
optional_types
runtime/optional_types.cc
runtime/optional_types_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_OPTIONAL_TYPES_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_OPTIONAL_TYPES_H_ #include "absl/status/status.h" #include "runtime/runtime_builder.h" namespace cel::extensions { absl::Status EnableOptionalTypes(RuntimeBuilder& builder); } #endif #include "runtime/optional_types.h" #includ...
#include "runtime/optional_types.h" #include <cstdint> #include <memory> #include <ostream> #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/types/span.h" #include "base/function.h" #in...
139
cpp
google/cel-cpp
reference_resolver
runtime/reference_resolver.cc
runtime/reference_resolver_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_REFERENCE_RESOLVER_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_REFERENCE_RESOLVER_H_ #include "absl/status/status.h" #include "runtime/runtime_builder.h" namespace cel { enum class ReferenceResolverEnabled { kCheckedExpressionOnly, kAlways }; absl::Status EnableReferenceResolver(RuntimeBu...
#include "runtime/reference_resolver.h" #include <cstdint> #include <utility> #include "google/api/expr/v1alpha1/checked.pb.h" #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/status/status.h" #include "absl/strings/string_view.h" #include "base/function_adapter.h" #include "common/value.h" #include "exte...
140
cpp
google/cel-cpp
regex_precompilation
runtime/regex_precompilation.cc
runtime/regex_precompilation_test.cc
#ifndef THIRD_PARTY_CEL_CPP_REGEX_PRECOMPILATION_FOLDING_H_ #define THIRD_PARTY_CEL_CPP_REGEX_PRECOMPILATION_FOLDING_H_ #include "absl/status/status.h" #include "common/memory.h" #include "runtime/runtime_builder.h" namespace cel::extensions { absl::Status EnableRegexPrecompilation(RuntimeBuilder& builder); } #endif ...
#include "runtime/regex_precompilation.h" #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/match.h" #include "base/function_adapter.h" #include "common/value.h" #include "extens...
141
cpp
google/cel-cpp
function_registry
runtime/function_registry.cc
runtime/function_registry_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_FUNCTION_REGISTRY_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_FUNCTION_REGISTRY_H_ #include <memory> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/container/node_hash_map.h" #include "absl/status/status.h" #include "absl/st...
#include "runtime/function_registry.h" #include <cstdint> #include <memory> #include <tuple> #include <vector> #include "absl/status/status.h" #include "base/function.h" #include "base/function_adapter.h" #include "base/function_descriptor.h" #include "base/kind.h" #include "common/value_manager.h" #include "internal/t...
142
cpp
google/cel-cpp
standard_runtime_builder_factory
runtime/standard_runtime_builder_factory.cc
runtime/standard_runtime_builder_factory_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_RUNTIME_BUILDER_FACTORY_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_RUNTIME_BUILDER_FACTORY_H_ #include "absl/status/statusor.h" #include "runtime/runtime_builder.h" #include "runtime/runtime_options.h" namespace cel { absl::StatusOr<RuntimeBuilder> CreateStandardRuntime...
#include "runtime/standard_runtime_builder_factory.h" #include <functional> #include <memory> #include <ostream> #include <string> #include <utility> #include <vector> #include "google/api/expr/v1alpha1/syntax.pb.h" #include "absl/base/no_destructor.h" #include "absl/log/absl_check.h" #include "absl/status/status.h" #i...
143
cpp
google/cel-cpp
mutable_list_impl
runtime/internal/mutable_list_impl.cc
runtime/internal/mutable_list_impl_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_INTERNAL_MUTABLE_LIST_IMPL_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_INTERNAL_MUTABLE_LIST_IMPL_H_ #include <string> #include "absl/status/status.h" #include "common/memory.h" #include "common/type.h" #include "common/value.h" #include "internal/casts.h" namespace cel::runtime_internal ...
#include "runtime/internal/mutable_list_impl.h" #include "base/type_provider.h" #include "common/memory.h" #include "common/type.h" #include "common/type_factory.h" #include "common/value.h" #include "common/value_manager.h" #include "common/values/legacy_value_manager.h" #include "internal/testing.h" namespace cel::ru...
144
cpp
google/cel-cpp
time_functions
runtime/standard/time_functions.cc
runtime/standard/time_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_TIME_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_TIME_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterTimeFunctions(FunctionRegistry& registry, ...
#include "runtime/standard/time_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "internal/testing.h" namespace cel { namespace { using testing::UnorderedElementsAre; MATCHER_P3(MatchesOperatorDescriptor, name, expected_kind1, expected_kind2, "") { co...
145
cpp
google/cel-cpp
equality_functions
runtime/standard/equality_functions.cc
runtime/standard/equality_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_EQUALITY_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_EQUALITY_FUNCTIONS_H_ #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/types/optional.h" #include "common/value.h" #include "common/value_manager.h" #include "runtime/function_...
#include "runtime/standard/equality_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "base/kind.h" #include "internal/testing.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { namespace { using testing::UnorderedElement...
146
cpp
google/cel-cpp
logical_functions
runtime/standard/logical_functions.cc
runtime/standard/logical_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_LOGICAL_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_LOGICAL_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterLogicalFunctions(FunctionRegistry& registry...
#include "runtime/standard/logical_functions.h" #include <functional> #include <string> #include <vector> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/match.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "base/builtins.h" #include "base/functio...
147
cpp
google/cel-cpp
container_membership_functions
runtime/standard/container_membership_functions.cc
runtime/standard/container_membership_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_CONTAINER_MEMBERSHIP_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_CONTAINER_MEMBERSHIP_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterContainerMembersh...
#include "runtime/standard/container_membership_functions.h" #include <array> #include <vector> #include "absl/strings/string_view.h" #include "base/builtins.h" #include "base/function_descriptor.h" #include "base/kind.h" #include "internal/testing.h" #include "runtime/function_registry.h" #include "runtime/runtime_opt...
148
cpp
google/cel-cpp
type_conversion_functions
runtime/standard/type_conversion_functions.cc
runtime/standard/type_conversion_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_TYPE_CONVERSION_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_TYPE_CONVERSION_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterTypeConversionFunctions(Fun...
#include "runtime/standard/type_conversion_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "internal/testing.h" namespace cel { namespace { using testing::IsEmpty; using testing::UnorderedElementsAre; MATCHER_P3(MatchesUnaryDescriptor, name, receiver, expected_ki...
149
cpp
google/cel-cpp
string_functions
runtime/standard/string_functions.cc
runtime/standard/string_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_STRING_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_STRING_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterStringFunctions(FunctionRegistry& registry, ...
#include "runtime/standard/string_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "internal/testing.h" namespace cel { namespace { using testing::IsEmpty; using testing::UnorderedElementsAre; enum class CallStyle { kFree, kReceiver }; MATCHER_P3(MatchesDescriptor...
150
cpp
google/cel-cpp
container_functions
runtime/standard/container_functions.cc
runtime/standard/container_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_CONTAINER_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_CONTAINER_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterContainerFunctions(FunctionRegistry& re...
#include "runtime/standard/container_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "internal/testing.h" namespace cel { namespace { using testing::IsEmpty; using testing::UnorderedElementsAre; MATCHER_P3(MatchesDescriptor, name, receiver, expected_kinds, "") { ...
151
cpp
google/cel-cpp
arithmetic_functions
runtime/standard/arithmetic_functions.cc
runtime/standard/arithmetic_functions_test.cc
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_ARITHMETIC_FUNCTIONS_H_ #define THIRD_PARTY_CEL_CPP_RUNTIME_STANDARD_ARITHMETIC_FUNCTIONS_H_ #include "absl/status/status.h" #include "runtime/function_registry.h" #include "runtime/runtime_options.h" namespace cel { absl::Status RegisterArithmeticFunctions(FunctionRegistry&...
#include "runtime/standard/arithmetic_functions.h" #include <vector> #include "base/builtins.h" #include "base/function_descriptor.h" #include "internal/testing.h" namespace cel { namespace { using testing::UnorderedElementsAre; MATCHER_P2(MatchesOperatorDescriptor, name, expected_kind, "") { const FunctionDescriptor...
152
cpp
google/glog
logging
src/logging.cc
src/logging_unittest.cc
#ifndef GLOG_LOGGING_H #define GLOG_LOGGING_H #include <atomic> #include <cerrno> #include <chrono> #include <cstddef> #include <cstdlib> #include <cstring> #include <ctime> #include <iosfwd> #include <memory> #include <ostream> #include <sstream> #include <string> #include <thread> #include <utility> #include <vector>...
#include <fcntl.h> #include <chrono> #include <cstdio> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <mutex> #include <queue> #include <sstream> #include <stdexcept> #include <string> #include <thread> #include <vector> #include "config.h" #ifdef HAVE_GLOB_H # ...
153
cpp
google/glog
demangle
src/demangle.cc
src/demangle_unittest.cc
#ifndef GLOG_INTERNAL_DEMANGLE_H #define GLOG_INTERNAL_DEMANGLE_H #include <cstddef> #if defined(GLOG_USE_GLOG_EXPORT) # include "glog/export.h" #endif #if !defined(GLOG_NO_EXPORT) # error "demangle.h" was not included correctly. #endif namespace google { inline namespace glog_internal_namespace_ { bool GLOG_NO_EXPOR...
#include "demangle.h" #include <fstream> #include <iostream> #include <string> #include "config.h" #include "glog/logging.h" #include "googletest.h" #include "utilities.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif GLOG_DEFINE_bool(demangle_filter, false, ...
154
cpp
google/glog
utilities
src/utilities.cc
src/utilities_unittest.cc
#ifndef GLOG_INTERNAL_UTILITIES_H #define GLOG_INTERNAL_UTILITIES_H #include <cstddef> #include <cstdio> #include <memory> #include <string> #include <type_traits> #include <utility> #ifdef _LP64 # define __PRIS_PREFIX "z" #else # define __PRIS_PREFIX #endif #define PRIdS __PRIS_PREFIX "d" #define PRIxS __PRIS_PREFIX...
#include "utilities.h" #include "glog/logging.h" #include "googletest.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif using namespace google; TEST(utilities, InitGoogleLoggingDeathTest) { ASSERT_DEATH(InitGoogleLogging("foobar"), ""); } int main(int argc, char** argv) {...
155
cpp
google/glog
symbolize
src/symbolize.cc
src/symbolize_unittest.cc
#ifndef GLOG_INTERNAL_SYMBOLIZE_H #define GLOG_INTERNAL_SYMBOLIZE_H #include <cstddef> #include <cstdint> #include <type_traits> #include "config.h" #include "glog/platform.h" #if defined(HAVE_LINK_H) # include <link.h> #elif defined(HAVE_ELF_H) # include <elf.h> #elif defined(HAVE_SYS_EXEC_ELF_H) # include <sys/e...
#include "symbolize.h" #include <csignal> #include <iostream> #include "config.h" #include "glog/logging.h" #include "googletest.h" #include "utilities.h" #include "stacktrace.h" #ifdef GLOG_USE_GFLAGS # include <gflags/gflags.h> using namespace GFLAGS_NAMESPACE; #endif using namespace std; using namespace google; #if...
156
cpp
google/glog
stacktrace
src/stacktrace.cc
src/stacktrace_unittest.cc
#ifndef GLOG_INTERNAL_STACKTRACE_H #define GLOG_INTERNAL_STACKTRACE_H #include "glog/platform.h" #if defined(GLOG_USE_GLOG_EXPORT) # include "glog/export.h" #endif #if !defined(GLOG_NO_EXPORT) # error "stacktrace.h" was not included correctly. #endif #include "config.h" #if defined(HAVE_LIBUNWIND) # define STACKTRAC...
#include "stacktrace.h" #include <cstdio> #include <cstdlib> #include "base/commandlineflags.h" #include "config.h" #include "glog/logging.h" #include "utilities.h" #ifdef HAVE_EXECINFO_BACKTRACE_SYMBOLS # include <execinfo.h> #endif #ifdef HAVE_STACKTRACE const int BACKTRACE_STEPS = 6; struct AddressRange { const v...
157
cpp
google/libphonenumber
generate_geocoding_data
tools/cpp/src/cpp-build/generate_geocoding_data.cc
tools/cpp/test/cpp-build/generate_geocoding_data_test.cc
#ifndef I18N_PHONENUMBERS_GENERATE_GEOCODING_DATA_H #define I18N_PHONENUMBERS_GENERATE_GEOCODING_DATA_H #include <string> namespace i18n { namespace phonenumbers { using std::string; string MakeStringLiteral(const string& s); string ReplaceAll(const string& input, const string& pattern, const string& ...
#include "cpp-build/generate_geocoding_data.h" #include <gtest/gtest.h> namespace i18n { namespace phonenumbers { TEST(GenerateGeocodingDataTest, TestMakeStringLiteral) { EXPECT_EQ("\"\"", MakeStringLiteral("")); EXPECT_EQ("\"Op\"\"\\xc3\"\"\\xa9\"\"ra\"", MakeStringLiteral("Op\xc3\xa9ra")); } TEST(Gene...
158
cpp
google/libphonenumber
asyoutypeformatter
cpp/src/phonenumbers/asyoutypeformatter.cc
cpp/test/phonenumbers/asyoutypeformatter_test.cc
#ifndef I18N_PHONENUMBERS_ASYOUTYPEFORMATTER_H_ #define I18N_PHONENUMBERS_ASYOUTYPEFORMATTER_H_ #include <list> #include <string> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/regexp_adapter.h" #include "phonenumbers/regexp_cache.h" #include "phonenumb...
#include "phonenumbers/asyoutypeformatter.h" #include <gtest/gtest.h> #include "phonenumbers/base/logging.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/test_util.h" namespace i18n { namespace phonenumbers { c...
159
cpp
google/libphonenumber
phonenumbermatch
cpp/src/phonenumbers/phonenumbermatch.cc
cpp/test/phonenumbers/phonenumbermatch_test.cc
#ifndef I18N_PHONENUMBERS_PHONENUMBERMATCH_H_ #define I18N_PHONENUMBERS_PHONENUMBERMATCH_H_ #include <string> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { using std::string; class PhoneNumberMatch { public: PhoneNumberMatch(int start, ...
#include "phonenumbers/phonenumber.h" #include "phonenumbers/phonenumbermatch.h" #include <gtest/gtest.h> #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { TEST(PhoneNumberMatch, TestGetterMethods) { PhoneNumber number; const int start_index = 10; const string raw_phone_number("1 ...
160
cpp
google/libphonenumber
regexp_cache
cpp/src/phonenumbers/regexp_cache.cc
cpp/test/phonenumbers/regexp_cache_test.cc
#ifndef I18N_PHONENUMBERS_REGEXP_CACHE_H_ #define I18N_PHONENUMBERS_REGEXP_CACHE_H_ #include <cstddef> #include <string> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/base/synchronization/lock.h" #ifdef I18N_PHONENUMBERS_USE_TR1_UNORDERED_MAP # includ...
#include <cstddef> #include <string> #include <gtest/gtest.h> #include "phonenumbers/base/synchronization/lock.h" #include "phonenumbers/regexp_cache.h" #include "phonenumbers/regexp_factory.h" namespace i18n { namespace phonenumbers { using std::string; class RegExpCacheTest : public testing::Test { protected: stat...
161
cpp
google/libphonenumber
shortnumberinfo
cpp/src/phonenumbers/shortnumberinfo.cc
cpp/test/phonenumbers/shortnumberinfo_test.cc
#ifndef I18N_PHONENUMBERS_SHORTNUMBERINFO_H_ #define I18N_PHONENUMBERS_SHORTNUMBERINFO_H_ #include <list> #include <map> #include <set> #include <string> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "absl/container/flat_hash_set.h" #include "absl/container/flat_has...
#include "phonenumbers/shortnumberinfo.h" #include <gtest/gtest.h> #include "phonenumbers/base/logging.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/phonenumberutil.h" #include "phonenumbers/stringutil.h" #include "phonenumbers/test_util.h" namespace i18n { namespace phonenumbers { class ShortNumbe...
162
cpp
google/libphonenumber
phonenumbermatcher
cpp/src/phonenumbers/phonenumbermatcher.cc
cpp/test/phonenumbers/phonenumbermatcher_test.cc
#ifndef I18N_PHONENUMBERS_PHONENUMBERMATCHER_H_ #define I18N_PHONENUMBERS_PHONENUMBERMATCHER_H_ #include <string> #include <vector> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/callback.h" #include "phonenumbers/regexp_adapter.h" namespace i18n { name...
#include "phonenumbers/phonenumbermatcher.h" #include <string> #include <vector> #include <gtest/gtest.h> #include <unicode/unistr.h> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/base/memory/singleton.h" #include "phonenumbers/default_logger.h" #inclu...
163
cpp
google/libphonenumber
phonenumberutil
cpp/src/phonenumbers/phonenumberutil.cc
cpp/test/phonenumbers/phonenumberutil_test.cc
#ifndef I18N_PHONENUMBERS_PHONENUMBERUTIL_H_ #define I18N_PHONENUMBERS_PHONENUMBERUTIL_H_ #include <stddef.h> #include <list> #include <map> #include <set> #include <string> #include <utility> #include <vector> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenum...
#include "phonenumbers/phonenumberutil.h" #include <algorithm> #include <iostream> #include <list> #include <set> #include <string> #include <gtest/gtest.h> #include <unicode/uchar.h> #include "phonenumbers/default_logger.h" #include "phonenumbers/normalize_utf8.h" #include "phonenumbers/phonemetadata.pb.h" #include "p...
164
cpp
google/libphonenumber
logger
cpp/src/phonenumbers/logger.cc
cpp/test/phonenumbers/logger_test.cc
#ifndef I18N_PHONENUMBERS_LOGGER_H_ #define I18N_PHONENUMBERS_LOGGER_H_ #include <cstdio> #include <string> namespace i18n { namespace phonenumbers { using std::string; enum { LOG_FATAL = 1, LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_DEBUG, }; enum { DFATAL = LOG_FATAL, #ifndef ERROR ERROR = LOG_ERROR, #endif ...
#include <string> #include <gtest/gtest.h> #include "phonenumbers/base/memory/scoped_ptr.h" #include "phonenumbers/default_logger.h" #include "phonenumbers/logger.h" namespace i18n { namespace phonenumbers { class StringLogger : public Logger { public: virtual ~StringLogger() {} const string& message() const { ...
165
cpp
google/libphonenumber
unicodestring
cpp/src/phonenumbers/unicodestring.cc
cpp/test/phonenumbers/unicodestring_test.cc
#ifndef I18N_PHONENUMBERS_UNICODESTRING_H_ #define I18N_PHONENUMBERS_UNICODESTRING_H_ #include "phonenumbers/utf/unicodetext.h" #include <cstring> #include <limits> namespace i18n { namespace phonenumbers { class UnicodeString { public: UnicodeString() : cached_index_(-1) {} explicit UnicodeString(const char* utf8...
#include <iostream> #include <gtest/gtest.h> #include "phonenumbers/unicodestring.h" using std::ostream; namespace i18n { namespace phonenumbers { ostream& operator<<(ostream& out, const UnicodeString& s) { string utf8; s.toUTF8String(utf8); out << utf8; return out; } TEST(UnicodeString, ToUTF8StringWithEmptySt...
166
cpp
google/libphonenumber
stringutil
cpp/src/phonenumbers/stringutil.cc
cpp/test/phonenumbers/stringutil_test.cc
#ifndef I18N_PHONENUMBERS_STRINGUTIL_H_ #define I18N_PHONENUMBERS_STRINGUTIL_H_ #include <cstddef> #include <string> #include <vector> #include "phonenumbers/base/basictypes.h" #include "absl/strings/string_view.h" #include "absl/strings/str_cat.h" namespace i18n { namespace phonenumbers { using std::string; using std:...
#include "phonenumbers/stringutil.h" #include <string> #include <vector> #include <gtest/gtest.h> using std::string; using std::vector; namespace i18n { namespace phonenumbers { TEST(StringUtilTest, OperatorPlus) { EXPECT_EQ("hello10", string("hello") + 10); } TEST(StringUtilTest, SimpleItoa) { EXPECT_EQ("10", Simp...
167
cpp
google/libphonenumber
unicodetext
cpp/src/phonenumbers/utf/unicodetext.cc
cpp/test/phonenumbers/utf/unicodetext_test.cc
#ifndef UTIL_UTF8_UNICODETEXT_H__ #define UTIL_UTF8_UNICODETEXT_H__ #include <iterator> #include <string> #include <utility> #include "phonenumbers/base/basictypes.h" namespace i18n { namespace phonenumbers { using std::string; using std::bidirectional_iterator_tag; using std::pair; class UnicodeText { public: class...
#include <gtest/gtest.h> #include "phonenumbers/utf/unicodetext.h" namespace i18n { namespace phonenumbers { TEST(UnicodeTextTest, Iterator) { struct value { const char* utf8; char32 code_point; } values[] = { { "\x31", 0x31 }, { "\xC2\xBD", 0x00BD }, { "\xEF\xBC\x91", 0xFF11 }, { "\xF0\x...
168
cpp
google/libphonenumber
phonenumber_offline_geocoder
cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc
cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc
#ifndef I18N_PHONENUMBERS_GEOCODING_PHONENUMBER_OFFLINE_GEOCODER_H_ #define I18N_PHONENUMBERS_GEOCODING_PHONENUMBER_OFFLINE_GEOCODER_H_ #include <map> #include <string> #include <unicode/locid.h> #include "absl/synchronization/mutex.h" #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scope...
#include "phonenumbers/geocoding/phonenumber_offline_geocoder.h" #include <gtest/gtest.h> #include <unicode/locid.h> #include "phonenumbers/geocoding/geocoding_test_data.h" #include "phonenumbers/phonenumber.h" #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { using icu::Locale; namespa...
169
cpp
google/libphonenumber
mapping_file_provider
cpp/src/phonenumbers/geocoding/mapping_file_provider.cc
cpp/test/phonenumbers/geocoding/mapping_file_provider_test.cc
#ifndef I18N_PHONENUMBERS_GEOCODING_MAPPING_FILE_PROVIDER_H_ #define I18N_PHONENUMBERS_GEOCODING_MAPPING_FILE_PROVIDER_H_ #include <string> #include "phonenumbers/base/basictypes.h" namespace i18n { namespace phonenumbers { using std::string; struct CountryLanguages; class MappingFileProvider { public: typedef const...
#include "phonenumbers/geocoding/mapping_file_provider.h" #include <gtest/gtest.h> #include "phonenumbers/geocoding/geocoding_data.h" namespace i18n { namespace phonenumbers { using std::string; namespace { #define COUNTRY_LANGUAGES(code, languagelist) \ const char* country_languages_##c...
170
cpp
google/libphonenumber
area_code_map
cpp/src/phonenumbers/geocoding/area_code_map.cc
cpp/test/phonenumbers/geocoding/area_code_map_test.cc
#ifndef I18N_PHONENUMBERS_AREA_CODE_MAP_H_ #define I18N_PHONENUMBERS_AREA_CODE_MAP_H_ #include <cstdint> #include <map> #include <string> #include "phonenumbers/base/basictypes.h" #include "phonenumbers/base/memory/scoped_ptr.h" namespace i18n { namespace phonenumbers { using std::map; using std::string; class DefaultM...
#include "phonenumbers/geocoding/area_code_map.h" #include <cstddef> #include <vector> #include <gtest/gtest.h> #include "phonenumbers/geocoding/geocoding_data.h" #include "phonenumbers/phonenumber.pb.h" namespace i18n { namespace phonenumbers { namespace { void MakeCodeMap(const PrefixDescriptions* descriptions, ...
171
cpp
google/langsvr
buffer_writer
src/buffer_writer.cc
src/buffer_writer_test.cc
#ifndef LANGSVR_BUFFER_WRITER_H_ #define LANGSVR_BUFFER_WRITER_H_ #include <cstring> #include <vector> #include "langsvr/writer.h" namespace langsvr { class BufferWriter final : public Writer { public: BufferWriter(); Result<SuccessType> Write(const std::byte* in, size_t count) override; std::string_view ...
#include "langsvr/buffer_writer.h" #include "gmock/gmock.h" namespace langsvr { namespace { template <typename T, typename U> std::vector<T> Cast(const std::vector<U>& in) { std::vector<T> out; out.resize(in.size()); for (size_t i = 0, n = in.size(); i < n; i++) { out[i] = static_cast<T>(in[i]); ...
172
cpp
google/langsvr
content_stream
src/content_stream.cc
src/content_stream_test.cc
#ifndef LANGSVR_CONTENT_STREAM_H_ #define LANGSVR_CONTENT_STREAM_H_ #include <string> #include "langsvr/result.h" namespace langsvr { class Reader; class Writer; } namespace langsvr { Result<std::string> ReadContent(Reader& reader); Result<SuccessType> WriteContent(Writer& writer, std::string_view content); } #endi...
#include "langsvr/content_stream.h" #include "gtest/gtest.h" #include "langsvr/buffer_reader.h" #include "langsvr/buffer_writer.h" namespace langsvr { namespace { TEST(ReadContent, Empty) { BufferReader reader(""); auto got = ReadContent(reader); EXPECT_NE(got, Success); EXPECT_EQ(got.Failure().reason, ...
173
cpp
google/langsvr
session
src/session.cc
src/session_test.cc
#ifndef LANGSVR_SESSION_H_ #define LANGSVR_SESSION_H_ #include <functional> #include <future> #include <string> #include <string_view> #include <type_traits> #include <unordered_map> #include <utility> #include "langsvr/json/builder.h" #include "langsvr/json/value.h" #include "langsvr/lsp/lsp.h" #include "langsvr/lsp/m...
#include "langsvr/lsp/lsp.h" #include "langsvr/session.h" #include <gtest/gtest.h> #include "langsvr/json/builder.h" #include "langsvr/lsp/decode.h" #include "gmock/gmock.h" #include "langsvr/result.h" namespace langsvr { namespace { Result<lsp::InitializeRequest> GetInitializeRequest() { static constexpr std::stri...
174
cpp
google/langsvr
buffer_reader
src/buffer_reader.cc
src/buffer_reader_test.cc
#ifndef LANGSVR_BUFFER_READER_H_ #define LANGSVR_BUFFER_READER_H_ #include "langsvr/reader.h" namespace langsvr { class BufferReader final : public Reader { public: ~BufferReader() override; explicit BufferReader(std::string_view string) : data_(reinterpret_cast<const std::byte*>(string.data())), ...
#include "langsvr/buffer_reader.h" #include "gtest/gtest.h" namespace langsvr { namespace { template <typename... ARGS> auto Data(ARGS&&... args) { return std::vector{std::byte{static_cast<uint8_t>(args)}...}; } TEST(BufferReaderTest, String) { BufferReader reader{"hello world"}; auto first = reader.String(...
175
cpp
google/langsvr
encode
src/lsp/encode.cc
src/lsp/encode_test.cc
#ifndef LANGSVR_LSP_ENCODE_H_ #define LANGSVR_LSP_ENCODE_H_ #include <string> #include <tuple> #include <unordered_map> #include <utility> #include <vector> #include "langsvr/json/builder.h" #include "langsvr/lsp/primitives.h" #include "langsvr/one_of.h" #include "langsvr/optional.h" #include "langsvr/traits.h" namespa...
#include "langsvr/json/builder.h" #include "langsvr/lsp/lsp.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(EncodeTest, ShowDocumentParams) { ShowDocumentParams params; params.uri = "file.txt"; params.selection = Range{{1, 2}, {3, 4}}; auto b = json::Builder::Create(); auto res...
176
cpp
google/langsvr
decode
src/lsp/decode.cc
src/lsp/decode_test.cc
#ifndef LANGSVR_DECODE_H_ #define LANGSVR_DECODE_H_ #include <string> #include <tuple> #include <unordered_map> #include <utility> #include <vector> #include "langsvr/json/value.h" #include "langsvr/lsp/primitives.h" #include "langsvr/one_of.h" #include "langsvr/optional.h" #include "langsvr/traits.h" namespace langsvr...
#include "langsvr/json/builder.h" #include "langsvr/lsp/lsp.h" #include "langsvr/lsp/printer.h" #include "gmock/gmock.h" namespace langsvr::lsp { namespace { TEST(DecodeTest, ShowDocumentParams) { auto b = json::Builder::Create(); auto parse_res = b->Parse( R"({"selection":{"end":{"character":4,"line":3...
177
cpp
pytorch/pytorch
inline_container
caffe2/serialize/inline_container.cc
caffe2/serialize/inline_container_test.cc
#pragma once #include <cerrno> #include <cstdio> #include <cstring> #include <fstream> #include <istream> #include <mutex> #include <ostream> #include <unordered_set> #include <c10/core/Allocator.h> #include <c10/core/Backend.h> #include "caffe2/serialize/istream_adapter.h" #include "caffe2/serialize/read_adapter_inter...
#include <array> #include <cstdio> #include <cstring> #include <string> #include <gtest/gtest.h> #include "caffe2/serialize/inline_container.h" #include <c10/util/Logging.h> #include "c10/util/irange.h" namespace caffe2 { namespace serialize { namespace { TEST(PyTorchStreamWriterAndReader, SaveAndLoad) { int64_t kFie...
178
cpp
google/quiche
quiche_text_utils
quiche/common/quiche_text_utils.cc
quiche/common/quiche_text_utils_test.cc
#ifndef QUICHE_COMMON_QUICHE_TEXT_UTILS_H_ #define QUICHE_COMMON_QUICHE_TEXT_UTILS_H_ #include <optional> #include <string> #include "absl/hash/hash.h" #include "absl/strings/ascii.h" #include "absl/strings/escaping.h" #include "absl/strings/match.h" #include "absl/strings/string_view.h" #include "quiche/common/platfor...
#include "quiche/common/quiche_text_utils.h" #include <string> #include "absl/strings/escaping.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace test { TEST(QuicheTextUtilsTest, ToLower) { EXPECT_EQ("lower", quiche::QuicheTextUtils::ToLower("LOWER")); EXPECT_EQ("lower", quiche::Qui...
179
cpp
google/quiche
simple_buffer_allocator
quiche/common/simple_buffer_allocator.cc
quiche/common/simple_buffer_allocator_test.cc
#ifndef QUICHE_COMMON_SIMPLE_BUFFER_ALLOCATOR_H_ #define QUICHE_COMMON_SIMPLE_BUFFER_ALLOCATOR_H_ #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/quiche_buffer_allocator.h" namespace quiche { class QUICHE_EXPORT SimpleBufferAllocator : public QuicheBufferAllocator { public: static Simpl...
#include "quiche/common/simple_buffer_allocator.h" #include <utility> #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace { TEST(SimpleBufferAllocatorTest, NewDelete) { SimpleBufferAllocator alloc; char* buf = alloc.New(4); EXPECT_NE(nullptr, buf); alloc.Delete(buf); } TEST(SimpleBu...
180
cpp
google/quiche
quiche_data_writer
quiche/common/quiche_data_writer.cc
quiche/common/quiche_data_writer_test.cc
#ifndef QUICHE_COMMON_QUICHE_DATA_WRITER_H_ #define QUICHE_COMMON_QUICHE_DATA_WRITER_H_ #include <cstddef> #include <cstdint> #include <cstring> #include <limits> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/platform/api/quiche_logging.h" #include "...
#include "quiche/common/quiche_data_writer.h" #include <cstdint> #include <cstring> #include <string> #include <vector> #include "absl/base/macros.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/quiche_data_reader.h" ...
181
cpp
google/quiche
quiche_ip_address
quiche/common/quiche_ip_address.cc
quiche/common/quiche_ip_address_test.cc
#ifndef QUICHE_COMMON_QUICHE_IP_ADDRESS_H_ #define QUICHE_COMMON_QUICHE_IP_ADDRESS_H_ #include <cstdint> #if defined(_WIN32) #include <winsock2.h> #include <ws2tcpip.h> #else #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #endif #include <ostream> #include <string> #includ...
#include "quiche/common/quiche_ip_address.h" #include <cstdint> #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/quiche_ip_address_family.h" namespace quiche { namespace test { namespace { TEST(QuicheIpAddressTest, IPv4) { QuicheIpAddress ip_address; EXPECT_FALSE(ip_address.IsInitialized(...
182
cpp
google/quiche
quiche_buffer_allocator
quiche/common/quiche_buffer_allocator.cc
quiche/common/quiche_buffer_allocator_test.cc
#ifndef QUICHE_COMMON_QUICHE_BUFFER_ALLOCATOR_H_ #define QUICHE_COMMON_QUICHE_BUFFER_ALLOCATOR_H_ #include <stddef.h> #include <memory> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/platform/api/quiche_iovec.h" namespace quiche { class QUICHE_EXPORT ...
#include "quiche/common/quiche_buffer_allocator.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_expect_bug.h" #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/simple_buffer_allocator.h" #include "quiche/common/test_tools/quiche_test_utils.h" namespace quic...
183
cpp
google/quiche
capsule
quiche/common/capsule.cc
quiche/common/capsule_test.cc
#ifndef QUICHE_COMMON_CAPSULE_H_ #define QUICHE_COMMON_CAPSULE_H_ #include <cstdint> #include <optional> #include <string> #include <vector> #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "absl/types/variant.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/comm...
#include "quiche/common/capsule.h" #include <cstddef> #include <deque> #include <string> #include <vector> #include "absl/strings/escaping.h" #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/quiche_buffer_allocator.h" #in...
184
cpp
google/quiche
quiche_random
quiche/common/quiche_random.cc
quiche/common/quiche_random_test.cc
#ifndef QUICHE_COMMON_QUICHE_RANDOM_H_ #define QUICHE_COMMON_QUICHE_RANDOM_H_ #include <cstddef> #include <cstdint> #include "quiche/common/platform/api/quiche_export.h" namespace quiche { class QUICHE_EXPORT QuicheRandom { public: virtual ~QuicheRandom() {} static QuicheRandom* GetInstance(); virtual void RandB...
#include "quiche/common/quiche_random.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace { TEST(QuicheRandom, RandBytes) { unsigned char buf1[16]; unsigned char buf2[16]; memset(buf1, 0xaf, sizeof(buf1)); memset(buf2, 0xaf, sizeof(buf2)); ASSERT_EQ(0, memcmp(buf1, buf2, sizeof...
185
cpp
google/quiche
quiche_simple_arena
quiche/common/quiche_simple_arena.cc
quiche/common/quiche_simple_arena_test.cc
#ifndef QUICHE_COMMON_QUICHE_SIMPLE_ARENA_H_ #define QUICHE_COMMON_QUICHE_SIMPLE_ARENA_H_ #include <memory> #include <vector> #include "quiche/common/platform/api/quiche_export.h" namespace quiche { class QUICHE_EXPORT QuicheSimpleArena { public: class QUICHE_EXPORT Status { private: friend class QuicheSimple...
#include "quiche/common/quiche_simple_arena.h" #include <string> #include <vector> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace { size_t kDefaultBlockSize = 2048; const char kTestString[] = "This is a decently long test string."; TEST(QuicheSimpl...
186
cpp
google/quiche
quiche_mem_slice_storage
quiche/common/quiche_mem_slice_storage.cc
quiche/common/quiche_mem_slice_storage_test.cc
#ifndef QUICHE_COMMON_QUICHE_MEM_SLICE_STORAGE_H_ #define QUICHE_COMMON_QUICHE_MEM_SLICE_STORAGE_H_ #include <vector> #include "absl/types/span.h" #include "quiche/quic/core/quic_types.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/platform/api/quiche_iovec.h" #include "quiche/common/p...
#include "quiche/common/quiche_mem_slice_storage.h" #include <string> #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/simple_buffer_allocator.h" namespace quiche { namespace test { namespace { class QuicheMemSliceStorageImplTest : public QuicheTest { public: QuicheMemSliceStorageImplTest(...
187
cpp
google/quiche
structured_headers
quiche/common/structured_headers.cc
quiche/common/structured_headers_test.cc
#ifndef QUICHE_COMMON_STRUCTURED_HEADERS_H_ #define QUICHE_COMMON_STRUCTURED_HEADERS_H_ #include <cstddef> #include <cstdint> #include <map> #include <optional> #include <string> #include <tuple> #include <utility> #include <vector> #include "absl/strings/string_view.h" #include "absl/types/variant.h" #include "quiche/...
#include "quiche/common/structured_headers.h" #include <math.h> #include <limits> #include <optional> #include <string> #include <utility> #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace structured_headers { namespace { Item Token(std::string value) { return Item(value, Item::kTokenType...
188
cpp
google/quiche
quiche_data_reader
quiche/common/quiche_data_reader.cc
quiche/common/quiche_data_reader_test.cc
#ifndef QUICHE_COMMON_QUICHE_DATA_READER_H_ #define QUICHE_COMMON_QUICHE_DATA_READER_H_ #include <cstddef> #include <cstdint> #include <limits> #include <string> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/platform/api/quiche_logging.h" #include "q...
#include "quiche/common/quiche_data_reader.h" #include <cstdint> #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/quiche_endian.h" namespace quiche { TEST(QuicheDataReaderTest, ReadUInt16) { const uint16_t kData[] = { QuicheEndian::HostToNet16(1), QuicheEndian::HostToNet16(1 << ...
189
cpp
google/quiche
quiche_file_utils
quiche/common/platform/api/quiche_file_utils.cc
quiche/common/platform/api/quiche_file_utils_test.cc
#ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_FILE_UTILS_H_ #define QUICHE_COMMON_PLATFORM_API_QUICHE_FILE_UTILS_H_ #include <optional> #include <string> #include <vector> #include "absl/strings/string_view.h" namespace quiche { std::string JoinPath(absl::string_view a, absl::string_view b); std::optional<std::string> Read...
#include "quiche/common/platform/api/quiche_file_utils.h" #include <optional> #include <string> #include <vector> #include "absl/algorithm/container.h" #include "absl/strings/str_cat.h" #include "absl/strings/strip.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace test { namespace { us...
190
cpp
google/quiche
quiche_hostname_utils
quiche/common/platform/api/quiche_hostname_utils.cc
quiche/common/platform/api/quiche_hostname_utils_test.cc
#ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_HOSTNAME_UTILS_H_ #define QUICHE_COMMON_PLATFORM_API_QUICHE_HOSTNAME_UTILS_H_ #include <string> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" namespace quiche { class QUICHE_EXPORT QuicheHostnameUtils { public: QuicheHostnameUtil...
#include "quiche/common/platform/api/quiche_hostname_utils.h" #include <string> #include "absl/base/macros.h" #include "quiche/common/platform/api/quiche_test.h" #include "quiche/common/test_tools/quiche_test_utils.h" namespace quiche { namespace test { namespace { class QuicheHostnameUtilsTest : public QuicheTest {}; ...
191
cpp
google/quiche
http_header_block
quiche/common/http/http_header_block.cc
quiche/common/http/http_header_block_test.cc
#ifndef QUICHE_COMMON_HTTP_HTTP_HEADER_BLOCK_H_ #define QUICHE_COMMON_HTTP_HTTP_HEADER_BLOCK_H_ #include <stddef.h> #include <functional> #include <list> #include <string> #include <utility> #include "absl/base/attributes.h" #include "absl/container/inlined_vector.h" #include "absl/strings/string_view.h" #include "quic...
#include "quiche/common/http/http_header_block.h" #include <memory> #include <string> #include <utility> #include "quiche/common/platform/api/quiche_test.h" #include "quiche/spdy/test_tools/spdy_test_utils.h" using ::testing::ElementsAre; namespace quiche { namespace test { class ValueProxyPeer { public: static absl...
192
cpp
google/quiche
http_header_storage
quiche/common/http/http_header_storage.cc
quiche/common/http/http_header_storage_test.cc
#ifndef QUICHE_COMMON_HTTP_HTTP_HEADER_STORAGE_H_ #define QUICHE_COMMON_HTTP_HTTP_HEADER_STORAGE_H_ #include "absl/container/inlined_vector.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/quiche_simple_arena.h" namespace quiche { using Fragments = a...
#include "quiche/common/http/http_header_storage.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche { namespace test { TEST(JoinTest, JoinEmpty) { Fragments empty; absl::string_view separator = ", "; char buf[10] = ""; size_t written = Join(buf, empty, separator); EXPECT_EQ(0u, written); ...
193
cpp
google/quiche
connect_udp_datagram_payload
quiche/common/masque/connect_udp_datagram_payload.cc
quiche/common/masque/connect_udp_datagram_payload_test.cc
#ifndef QUICHE_COMMON_MASQUE_CONNECT_UDP_DATAGRAM_PAYLOAD_H_ #define QUICHE_COMMON_MASQUE_CONNECT_UDP_DATAGRAM_PAYLOAD_H_ #include <cstdint> #include <memory> #include <string> #include "absl/strings/string_view.h" #include "quiche/common/quiche_data_writer.h" namespace quiche { class QUICHE_EXPORT ConnectUdpDatagramPa...
#include "quiche/common/masque/connect_udp_datagram_payload.h" #include <memory> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche::test { namespace { TEST(ConnectUdpDatagramPayloadTest, ParseUdpPacket) { static constexpr char kDatagramPayload[] = "\x00packet";...
194
cpp
google/quiche
connect_ip_datagram_payload
quiche/common/masque/connect_ip_datagram_payload.cc
quiche/common/masque/connect_ip_datagram_payload_test.cc
#ifndef QUICHE_COMMON_MASQUE_CONNECT_IP_DATAGRAM_PAYLOAD_H_ #define QUICHE_COMMON_MASQUE_CONNECT_IP_DATAGRAM_PAYLOAD_H_ #include <cstddef> #include <cstdint> #include <memory> #include <string> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_export.h" #include "quiche/common/quiche_dat...
#include "quiche/common/masque/connect_ip_datagram_payload.h" #include <memory> #include <string> #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche::test { namespace { TEST(ConnectIpDatagramPayloadTest, ParseIpPacket) { static constexpr char kDatagramPayload[] ...
195
cpp
google/quiche
quiche_test_utils
quiche/common/test_tools/quiche_test_utils.cc
quiche/common/test_tools/quiche_test_utils_test.cc
#ifndef QUICHE_COMMON_TEST_TOOLS_QUICHE_TEST_UTILS_H_ #define QUICHE_COMMON_TEST_TOOLS_QUICHE_TEST_UTILS_H_ #include <string> #include "absl/status/status.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" #include "quiche/common/platform/api/quiche_iovec.h" #include "quiche/common/platform/api/...
#include "quiche/common/test_tools/quiche_test_utils.h" #include "absl/status/status.h" #include "absl/status/statusor.h" #include "quiche/common/platform/api/quiche_test.h" namespace quiche::test { namespace { using ::testing::HasSubstr; using ::testing::Not; TEST(QuicheTestUtilsTest, StatusMatchers) { const absl::S...
196
cpp
google/quiche
load_balancer_decoder
quiche/quic/load_balancer/load_balancer_decoder.cc
quiche/quic/load_balancer/load_balancer_decoder_test.cc
#ifndef QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_DECODER_H_ #define QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_DECODER_H_ #include <cstdint> #include <optional> #include "absl/base/attributes.h" #include "quiche/quic/core/quic_connection_id.h" #include "quiche/quic/load_balancer/load_balancer_config.h" #include "quiche/qui...
#include "quiche/quic/load_balancer/load_balancer_decoder.h" #include <cstdint> #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "quiche/quic/core/quic_connection_id.h" #include "quiche/quic/load_balancer/load_balancer_config.h" #include "quiche/quic/load_balancer/load_balancer_server_id.h" #...
197
cpp
google/quiche
load_balancer_encoder
quiche/quic/load_balancer/load_balancer_encoder.cc
quiche/quic/load_balancer/load_balancer_encoder_test.cc
#ifndef QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_ENCODER_H_ #define QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_ENCODER_H_ #include <algorithm> #include <cstdint> #include <optional> #include "absl/numeric/int128.h" #include "quiche/quic/core/connection_id_generator.h" #include "quiche/quic/core/crypto/quic_random.h" #inclu...
#include "quiche/quic/load_balancer/load_balancer_encoder.h" #include <cstddef> #include <cstdint> #include <cstring> #include <optional> #include <queue> #include "absl/numeric/int128.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "quiche/quic/core/crypto/quic_random.h" #include "quiche...
198
cpp
google/quiche
load_balancer_config
quiche/quic/load_balancer/load_balancer_config.cc
quiche/quic/load_balancer/load_balancer_config_test.cc
#ifndef QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_CONFIG_H_ #define QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_CONFIG_H_ #include <cstdint> #include <optional> #include "absl/base/attributes.h" #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "openssl/aes.h" #include "quiche/quic/core/quic_connect...
#include "quiche/quic/load_balancer/load_balancer_config.h" #include <array> #include <cstdint> #include <cstring> #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "quiche/quic/core/quic_connection_id.h" #include "quiche/quic/load_balancer/load_balancer_server_id.h" #include "quiche/quic/plat...
199
cpp
google/quiche
load_balancer_server_id
quiche/quic/load_balancer/load_balancer_server_id.cc
quiche/quic/load_balancer/load_balancer_server_id_test.cc
#ifndef QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_SERVER_ID_H_ #define QUICHE_QUIC_LOAD_BALANCER_LOAD_BALANCER_SERVER_ID_H_ #include <array> #include <cstdint> #include <string> #include "absl/strings/string_view.h" #include "absl/types/span.h" #include "quiche/quic/platform/api/quic_export.h" namespace quic { inline con...
#include "quiche/quic/load_balancer/load_balancer_server_id.h" #include <cstdint> #include <cstring> #include "absl/hash/hash_testing.h" #include "absl/types/span.h" #include "quiche/quic/platform/api/quic_expect_bug.h" #include "quiche/quic/platform/api/quic_test.h" namespace quic { namespace test { namespace { class ...