Home
last modified time | relevance | path

Searched refs:string_ref (Results 1 – 25 of 83) sorted by relevance

1234

/external/grpc-grpc/test/cpp/util/
Dstring_ref_test.cc36 string_ref s; in TEST_F()
42 string_ref s(kTestString); in TEST_F()
48 string_ref s(kTestString, 2); in TEST_F()
55 string_ref s(copy); in TEST_F()
61 string_ref s1(kTestString); in TEST_F()
63 const string_ref& s2(s1); in TEST_F()
70 string_ref s(copy); in TEST_F()
77 string_ref s1(kTestString); in TEST_F()
79 string_ref s2; in TEST_F()
87 string_ref s(kTestString); in TEST_F()
[all …]
Dcli_call_test.cc46 for (std::multimap<grpc::string_ref, grpc::string_ref>::const_iterator in Echo()
108 std::multimap<grpc::string_ref, grpc::string_ref> server_initial_metadata, in TEST_F()
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dstring_ref.h41 class string_ref {
51 string_ref() : data_(nullptr), length_(0) {} in string_ref() function
52 string_ref(const string_ref& other) in string_ref() function
54 string_ref& operator=(const string_ref& rhs) {
60 string_ref(const char* s) : data_(s), length_(strlen(s)) {} in string_ref() function
61 string_ref(const char* s, size_t l) : data_(s), length_(l) {} in string_ref() function
62 string_ref(const grpc::string& s) : data_(s.data()), length_(s.length()) {} in string_ref() function
92 int compare(string_ref x) const { in compare()
102 bool starts_with(string_ref x) const { in starts_with()
106 bool ends_with(string_ref x) const { in ends_with()
[all …]
Dmetadata_map.h66 std::multimap<grpc::string_ref, grpc::string_ref>* map() { in map()
75 std::multimap<grpc::string_ref, grpc::string_ref> map_;
82 map_.insert(std::pair<grpc::string_ref, grpc::string_ref>( in FillMap()
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/
Dstring_ref.h41 class string_ref {
51 string_ref() : data_(nullptr), length_(0) {} in string_ref() function
52 string_ref(const string_ref& other) in string_ref() function
54 string_ref& operator=(const string_ref& rhs) {
61 string_ref(const char* s) : data_(s), length_(strlen(s)) {} in string_ref() function
62 string_ref(const char* s, size_t l) : data_(s), length_(l) {} in string_ref() function
64 string_ref(const std::string& s) : data_(s.data()), length_(s.length()) {} in string_ref() function
94 int compare(string_ref x) const { in compare()
104 bool starts_with(string_ref x) const { in starts_with()
108 bool ends_with(string_ref x) const { in ends_with()
[all …]
Dmetadata_map.h66 std::multimap<grpc::string_ref, grpc::string_ref>* map() { in map()
82 std::multimap<grpc::string_ref, grpc::string_ref> map_;
95 map_.insert(std::pair<grpc::string_ref, grpc::string_ref>( in FillMap()
Dinterceptor.h185 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
194 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
Dinterceptor_common.h124 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvInitialMetadata() in GetRecvInitialMetadata()
137 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvTrailingMetadata() in GetRecvTrailingMetadata()
505 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvInitialMetadata() in GetRecvInitialMetadata()
520 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvTrailingMetadata() in GetRecvTrailingMetadata()
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/
Dstring_ref.h41 class string_ref {
51 string_ref() : data_(nullptr), length_(0) {} in string_ref() function
52 string_ref(const string_ref& other) in string_ref() function
54 string_ref& operator=(const string_ref& rhs) {
61 string_ref(const char* s) : data_(s), length_(strlen(s)) {} in string_ref() function
62 string_ref(const char* s, size_t l) : data_(s), length_(l) {} in string_ref() function
64 string_ref(const std::string& s) : data_(s.data()), length_(s.length()) {} in string_ref() function
94 int compare(string_ref x) const { in compare()
104 bool starts_with(string_ref x) const { in starts_with()
108 bool ends_with(string_ref x) const { in ends_with()
[all …]
Dmetadata_map.h66 std::multimap<grpc::string_ref, grpc::string_ref>* map() { in map()
82 std::multimap<grpc::string_ref, grpc::string_ref> map_;
95 map_.insert(std::pair<grpc::string_ref, grpc::string_ref>( in FillMap()
Dinterceptor.h185 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
194 virtual std::multimap<grpc::string_ref, grpc::string_ref>*
Dinterceptor_common.h124 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvInitialMetadata() in GetRecvInitialMetadata()
137 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvTrailingMetadata() in GetRecvTrailingMetadata()
505 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvInitialMetadata() in GetRecvInitialMetadata()
520 std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvTrailingMetadata() in GetRecvTrailingMetadata()
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/
Dsecure_auth_context.cc25 std::vector<grpc::string_ref> SecureAuthContext::GetPeerIdentity() const { in GetPeerIdentity()
27 return std::vector<grpc::string_ref>(); in GetPeerIdentity()
31 std::vector<grpc::string_ref> identity; in GetPeerIdentity()
35 grpc::string_ref(property->value, property->value_length)); in GetPeerIdentity()
48 std::vector<grpc::string_ref> SecureAuthContext::FindPropertyValues( in FindPropertyValues()
51 return std::vector<grpc::string_ref>(); in FindPropertyValues()
56 std::vector<grpc::string_ref> values; in FindPropertyValues()
58 values.push_back(grpc::string_ref(property->value, property->value_length)); in FindPropertyValues()
80 const grpc::string_ref& value) { in AddProperty()
Dsecure_auth_context.h38 std::vector<grpc::string_ref> GetPeerIdentity() const override;
42 std::vector<grpc::string_ref> FindPropertyValues(
50 const grpc::string_ref& value) override;
Dauth_property_iterator.cc65 return std::pair<grpc::string_ref, grpc::string_ref>( in operator *()
67 grpc::string_ref(property_->value, property_->value_length)); in operator *()
/external/grpc-grpc/src/cpp/common/
Dsecure_auth_context.cc33 std::vector<grpc::string_ref> SecureAuthContext::GetPeerIdentity() const { in GetPeerIdentity()
35 return std::vector<grpc::string_ref>(); in GetPeerIdentity()
38 std::vector<grpc::string_ref> identity; in GetPeerIdentity()
42 grpc::string_ref(property->value, property->value_length)); in GetPeerIdentity()
55 std::vector<grpc::string_ref> SecureAuthContext::FindPropertyValues( in FindPropertyValues()
58 return std::vector<grpc::string_ref>(); in FindPropertyValues()
63 std::vector<grpc::string_ref> values; in FindPropertyValues()
65 values.push_back(grpc::string_ref(property->value, property->value_length)); in FindPropertyValues()
87 const grpc::string_ref& value) { in AddProperty()
Dsecure_auth_context.h36 std::vector<grpc::string_ref> GetPeerIdentity() const override;
40 std::vector<grpc::string_ref> FindPropertyValues(
48 const grpc::string_ref& value) override;
Dauth_property_iterator.cc65 return std::pair<grpc::string_ref, grpc::string_ref>( in operator *()
67 grpc::string_ref(property_->value, property_->value_length)); in operator *()
/external/grpc-grpc/include/grpcpp/impl/codegen/security/
Dauth_context.h35 typedef std::pair<grpc::string_ref, grpc::string_ref> AuthProperty;
76 virtual std::vector<grpc::string_ref> GetPeerIdentity() const = 0;
80 virtual std::vector<grpc::string_ref> FindPropertyValues(
89 const grpc::string_ref& value) = 0;
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/security/
Dauth_context.h35 typedef std::pair<string_ref, string_ref> AuthProperty;
76 virtual std::vector<grpc::string_ref> GetPeerIdentity() const = 0;
80 virtual std::vector<grpc::string_ref> FindPropertyValues(
88 virtual void AddProperty(const std::string& key, const string_ref& value) = 0;
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/security/
Dauth_context.h35 typedef std::pair<string_ref, string_ref> AuthProperty;
76 virtual std::vector<grpc::string_ref> GetPeerIdentity() const = 0;
80 virtual std::vector<grpc::string_ref> FindPropertyValues(
88 virtual void AddProperty(const std::string& key, const string_ref& value) = 0;
/external/grpc-grpc/test/cpp/end2end/
Dtest_service_impl.cc57 std::vector<grpc::string_ref> tst = in CheckServerAuthContext()
134 const std::multimap<grpc::string_ref, grpc::string_ref>& client_metadata = in Echo()
136 for (std::multimap<grpc::string_ref, grpc::string_ref>::const_iterator in Echo()
337 const std::multimap<grpc::string_ref, grpc::string_ref>& metadata, in GetIntValueFromMetadata() argument
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/test/
Dserver_context_test_spouse.h42 std::pair<grpc::string_ref, grpc::string_ref>( in AddClientMetadata()
44 grpc::string_ref(item.second.data(), item.second.size()))); in AddClientMetadata()
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/test/
Dserver_context_test_spouse.h42 std::pair<grpc::string_ref, grpc::string_ref>( in AddClientMetadata()
44 grpc::string_ref(item.second.data(), item.second.size()))); in AddClientMetadata()
/external/grpc-grpc/include/grpcpp/test/
Dserver_context_test_spouse.h43 std::pair<grpc::string_ref, grpc::string_ref>( in AddClientMetadata()
45 grpc::string_ref(iter->second.data(), iter->second.size()))); in AddClientMetadata()

1234