googletest/googlemock/include/gmock/internal/gmock-internal-utils.h
Go to the documentation of this file.
1 // Copyright 2007, Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 
30 // Google Mock - a framework for writing C++ mock classes.
31 //
32 // This file defines some utilities useful for implementing Google
33 // Mock. They are subject to change without notice, so please DO NOT
34 // USE THEM IN USER CODE.
35 
36 // IWYU pragma: private, include "gmock/gmock.h"
37 // IWYU pragma: friend gmock/.*
38 
39 #ifndef GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
40 #define GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
41 
42 #include <stdio.h>
43 
44 #include <ostream> // NOLINT
45 #include <string>
46 #include <type_traits>
47 #include <vector>
48 
49 #include "gmock/internal/gmock-port.h"
50 #include "gtest/gtest.h"
51 
52 namespace testing {
53 
54 template <typename>
55 class Matcher;
56 
57 namespace internal {
58 
59 // Silence MSVC C4100 (unreferenced formal parameter) and
60 // C4805('==': unsafe mix of type 'const int' and type 'const bool')
61 #ifdef _MSC_VER
62 # pragma warning(push)
63 # pragma warning(disable:4100)
64 # pragma warning(disable:4805)
65 #endif
66 
67 // Joins a vector of strings as if they are fields of a tuple; returns
68 // the joined string.
70  const std::vector<const char*>& names, const Strings& values);
71 
72 // Converts an identifier name to a space-separated list of lower-case
73 // words. Each maximum substring of the form [A-Za-z][a-z]*|\d+ is
74 // treated as one word. For example, both "FooBar123" and
75 // "foo_bar_123" are converted to "foo bar 123".
77 
78 // GetRawPointer(p) returns the raw pointer underlying p when p is a
79 // smart pointer, or returns p itself when p is already a raw pointer.
80 // The following default implementation is for the smart pointer case.
81 template <typename Pointer>
82 inline const typename Pointer::element_type* GetRawPointer(const Pointer& p) {
83  return p.get();
84 }
85 // This overload version is for std::reference_wrapper, which does not work with
86 // the overload above, as it does not have an `element_type`.
87 template <typename Element>
88 inline const Element* GetRawPointer(const std::reference_wrapper<Element>& r) {
89  return &r.get();
90 }
91 
92 // This overloaded version is for the raw pointer case.
93 template <typename Element>
94 inline Element* GetRawPointer(Element* p) { return p; }
95 
96 // MSVC treats wchar_t as a native type usually, but treats it as the
97 // same as unsigned short when the compiler option /Zc:wchar_t- is
98 // specified. It defines _NATIVE_WCHAR_T_DEFINED symbol when wchar_t
99 // is a native type.
100 #if defined(_MSC_VER) && !defined(_NATIVE_WCHAR_T_DEFINED)
101 // wchar_t is a typedef.
102 #else
103 # define GMOCK_WCHAR_T_IS_NATIVE_ 1
104 #endif
105 
106 // In what follows, we use the term "kind" to indicate whether a type
107 // is bool, an integer type (excluding bool), a floating-point type,
108 // or none of them. This categorization is useful for determining
109 // when a matcher argument type can be safely converted to another
110 // type in the implementation of SafeMatcherCast.
111 enum TypeKind {
113 };
114 
115 // KindOf<T>::value is the kind of type T.
116 template <typename T> struct KindOf {
117  enum { value = kOther }; // The default kind.
118 };
119 
120 // This macro declares that the kind of 'type' is 'kind'.
121 #define GMOCK_DECLARE_KIND_(type, kind) \
122  template <> struct KindOf<type> { enum { value = kind }; }
123 
125 
126 // All standard integer types.
128 GMOCK_DECLARE_KIND_(signed char, kInteger);
129 GMOCK_DECLARE_KIND_(unsigned char, kInteger);
130 GMOCK_DECLARE_KIND_(short, kInteger); // NOLINT
131 GMOCK_DECLARE_KIND_(unsigned short, kInteger); // NOLINT
133 GMOCK_DECLARE_KIND_(unsigned int, kInteger);
134 GMOCK_DECLARE_KIND_(long, kInteger); // NOLINT
135 GMOCK_DECLARE_KIND_(unsigned long, kInteger); // NOLINT
136 GMOCK_DECLARE_KIND_(long long, kInteger); // NOLINT
137 GMOCK_DECLARE_KIND_(unsigned long long, kInteger); // NOLINT
138 
139 #if GMOCK_WCHAR_T_IS_NATIVE_
140 GMOCK_DECLARE_KIND_(wchar_t, kInteger);
141 #endif
142 
143 // All standard floating-point types.
146 GMOCK_DECLARE_KIND_(long double, kFloatingPoint);
147 
148 #undef GMOCK_DECLARE_KIND_
149 
150 // Evaluates to the kind of 'type'.
151 #define GMOCK_KIND_OF_(type) \
152  static_cast< ::testing::internal::TypeKind>( \
153  ::testing::internal::KindOf<type>::value)
154 
155 // LosslessArithmeticConvertibleImpl<kFromKind, From, kToKind, To>::value
156 // is true if and only if arithmetic type From can be losslessly converted to
157 // arithmetic type To.
158 //
159 // It's the user's responsibility to ensure that both From and To are
160 // raw (i.e. has no CV modifier, is not a pointer, and is not a
161 // reference) built-in arithmetic types, kFromKind is the kind of
162 // From, and kToKind is the kind of To; the value is
163 // implementation-defined when the above pre-condition is violated.
164 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To>
165 using LosslessArithmeticConvertibleImpl = std::integral_constant<
166  bool,
167  // clang-format off
168  // Converting from bool is always lossless
169  (kFromKind == kBool) ? true
170  // Converting between any other type kinds will be lossy if the type
171  // kinds are not the same.
172  : (kFromKind != kToKind) ? false
173  : (kFromKind == kInteger &&
174  // Converting between integers of different widths is allowed so long
175  // as the conversion does not go from signed to unsigned.
176  (((sizeof(From) < sizeof(To)) &&
178  // Converting between integers of the same width only requires the
179  // two types to have the same signedness.
180  ((sizeof(From) == sizeof(To)) &&
182  ) ? true
183  // Floating point conversions are lossless if and only if `To` is at least
184  // as wide as `From`.
185  : (kFromKind == kFloatingPoint && (sizeof(From) <= sizeof(To))) ? true
186  : false
187  // clang-format on
188  >;
189 
190 // LosslessArithmeticConvertible<From, To>::value is true if and only if
191 // arithmetic type From can be losslessly converted to arithmetic type To.
192 //
193 // It's the user's responsibility to ensure that both From and To are
194 // raw (i.e. has no CV modifier, is not a pointer, and is not a
195 // reference) built-in arithmetic types; the value is
196 // implementation-defined when the above pre-condition is violated.
197 template <typename From, typename To>
201 
202 // This interface knows how to report a Google Mock failure (either
203 // non-fatal or fatal).
205  public:
206  // The type of a failure (either non-fatal or fatal).
207  enum FailureType {
209  };
210 
212 
213  // Reports a failure that occurred at the given source file location.
214  virtual void ReportFailure(FailureType type, const char* file, int line,
215  const std::string& message) = 0;
216 };
217 
218 // Returns the failure reporter used by Google Mock.
219 GTEST_API_ FailureReporterInterface* GetFailureReporter();
220 
221 // Asserts that condition is true; aborts the process with the given
222 // message if condition is false. We cannot use LOG(FATAL) or CHECK()
223 // as Google Mock might be used to mock the log sink itself. We
224 // inline this function to prevent it from showing up in the stack
225 // trace.
226 inline void Assert(bool condition, const char* file, int line,
227  const std::string& msg) {
228  if (!condition) {
230  file, line, msg);
231  }
232 }
233 inline void Assert(bool condition, const char* file, int line) {
234  Assert(condition, file, line, "Assertion failed.");
235 }
236 
237 // Verifies that condition is true; generates a non-fatal failure if
238 // condition is false.
239 inline void Expect(bool condition, const char* file, int line,
240  const std::string& msg) {
241  if (!condition) {
243  file, line, msg);
244  }
245 }
246 inline void Expect(bool condition, const char* file, int line) {
247  Expect(condition, file, line, "Expectation failed.");
248 }
249 
250 // Severity level of a log.
252  kInfo = 0,
253  kWarning = 1
254 };
255 
256 // Valid values for the --gmock_verbose flag.
257 
258 // All logs (informational and warnings) are printed.
259 const char kInfoVerbosity[] = "info";
260 // Only warnings are printed.
261 const char kWarningVerbosity[] = "warning";
262 // No logs are printed.
263 const char kErrorVerbosity[] = "error";
264 
265 // Returns true if and only if a log with the given severity is visible
266 // according to the --gmock_verbose flag.
268 
269 // Prints the given message to stdout if and only if 'severity' >= the level
270 // specified by the --gmock_verbose flag. If stack_frames_to_skip >=
271 // 0, also prints the stack trace excluding the top
272 // stack_frames_to_skip frames. In opt mode, any positive
273 // stack_frames_to_skip is treated as 0, since we don't know which
274 // function calls will be inlined by the compiler and need to be
275 // conservative.
277  int stack_frames_to_skip);
278 
279 // A marker class that is used to resolve parameterless expectations to the
280 // correct overload. This must not be instantiable, to prevent client code from
281 // accidentally resolving to the overload; for example:
282 //
283 // ON_CALL(mock, Method({}, nullptr))...
284 //
285 class WithoutMatchers {
286  private:
289 };
290 
291 // Internal use only: access the singleton instance of WithoutMatchers.
292 GTEST_API_ WithoutMatchers GetWithoutMatchers();
293 
294 // Disable MSVC warnings for infinite recursion, since in this case the
295 // recursion is unreachable.
296 #ifdef _MSC_VER
297 # pragma warning(push)
298 # pragma warning(disable:4717)
299 #endif
300 
301 // Invalid<T>() is usable as an expression of type T, but will terminate
302 // the program with an assertion failure if actually run. This is useful
303 // when a value of type T is needed for compilation, but the statement
304 // will not really be executed (or we don't care if the statement
305 // crashes).
306 template <typename T>
307 inline T Invalid() {
308  Assert(false, "", -1, "Internal error: attempt to return invalid value");
309  // This statement is unreachable, and would never terminate even if it
310  // could be reached. It is provided only to placate compiler warnings
311  // about missing return statements.
312  return Invalid<T>();
313 }
314 
315 #ifdef _MSC_VER
316 # pragma warning(pop)
317 #endif
318 
319 // Given a raw type (i.e. having no top-level reference or const
320 // modifier) RawContainer that's either an STL-style container or a
321 // native array, class StlContainerView<RawContainer> has the
322 // following members:
323 //
324 // - type is a type that provides an STL-style container view to
325 // (i.e. implements the STL container concept for) RawContainer;
326 // - const_reference is a type that provides a reference to a const
327 // RawContainer;
328 // - ConstReference(raw_container) returns a const reference to an STL-style
329 // container view to raw_container, which is a RawContainer.
330 // - Copy(raw_container) returns an STL-style container view of a
331 // copy of raw_container, which is a RawContainer.
332 //
333 // This generic version is used when RawContainer itself is already an
334 // STL-style container.
335 template <class RawContainer>
336 class StlContainerView {
337  public:
338  typedef RawContainer type;
339  typedef const type& const_reference;
340 
341  static const_reference ConstReference(const RawContainer& container) {
342  static_assert(!std::is_const<RawContainer>::value,
343  "RawContainer type must not be const");
344  return container;
345  }
346  static type Copy(const RawContainer& container) { return container; }
347 };
348 
349 // This specialization is used when RawContainer is a native array type.
350 template <typename Element, size_t N>
351 class StlContainerView<Element[N]> {
352  public:
355  // NativeArray<T> can represent a native array either by value or by
356  // reference (selected by a constructor argument), so 'const type'
357  // can be used to reference a const native array. We cannot
358  // 'typedef const type& const_reference' here, as that would mean
359  // ConstReference() has to return a reference to a local variable.
360  typedef const type const_reference;
361 
362  static const_reference ConstReference(const Element (&array)[N]) {
364  "Element type must not be const");
366  }
367  static type Copy(const Element (&array)[N]) {
368  return type(array, N, RelationToSourceCopy());
369  }
370 };
371 
372 // This specialization is used when RawContainer is a native array
373 // represented as a (pointer, size) tuple.
374 template <typename ElementPointer, typename Size>
375 class StlContainerView< ::std::tuple<ElementPointer, Size> > {
376  public:
377  typedef typename std::remove_const<
378  typename std::pointer_traits<ElementPointer>::element_type>::type
381  typedef const type const_reference;
382 
384  const ::std::tuple<ElementPointer, Size>& array) {
385  return type(std::get<0>(array), std::get<1>(array),
387  }
388  static type Copy(const ::std::tuple<ElementPointer, Size>& array) {
389  return type(std::get<0>(array), std::get<1>(array), RelationToSourceCopy());
390  }
391 };
392 
393 // The following specialization prevents the user from instantiating
394 // StlContainer with a reference type.
395 template <typename T> class StlContainerView<T&>;
396 
397 // A type transform to remove constness from the first part of a pair.
398 // Pairs like that are used as the value_type of associative containers,
399 // and this transform produces a similar but assignable pair.
400 template <typename T>
401 struct RemoveConstFromKey {
402  typedef T type;
403 };
404 
405 // Partially specialized to remove constness from std::pair<const K, V>.
406 template <typename K, typename V>
407 struct RemoveConstFromKey<std::pair<const K, V> > {
408  typedef std::pair<K, V> type;
409 };
410 
411 // Emit an assertion failure due to incorrect DoDefault() usage. Out-of-lined to
412 // reduce code size.
413 GTEST_API_ void IllegalDoDefault(const char* file, int line);
414 
415 template <typename F, typename Tuple, size_t... Idx>
416 auto ApplyImpl(F&& f, Tuple&& args, IndexSequence<Idx...>) -> decltype(
417  std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...)) {
418  return std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...);
419 }
420 
421 // Apply the function to a tuple of arguments.
422 template <typename F, typename Tuple>
423 auto Apply(F&& f, Tuple&& args) -> decltype(
424  ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args),
425  MakeIndexSequence<std::tuple_size<
426  typename std::remove_reference<Tuple>::type>::value>())) {
427  return ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args),
428  MakeIndexSequence<std::tuple_size<
430 }
431 
432 // Template struct Function<F>, where F must be a function type, contains
433 // the following typedefs:
434 //
435 // Result: the function's return type.
436 // Arg<N>: the type of the N-th argument, where N starts with 0.
437 // ArgumentTuple: the tuple type consisting of all parameters of F.
438 // ArgumentMatcherTuple: the tuple type consisting of Matchers for all
439 // parameters of F.
440 // MakeResultVoid: the function type obtained by substituting void
441 // for the return type of F.
442 // MakeResultIgnoredValue:
443 // the function type obtained by substituting Something
444 // for the return type of F.
445 template <typename T>
446 struct Function;
447 
448 template <typename R, typename... Args>
449 struct Function<R(Args...)> {
450  using Result = R;
451  static constexpr size_t ArgumentCount = sizeof...(Args);
452  template <size_t I>
453  using Arg = ElemFromList<I, Args...>;
454  using ArgumentTuple = std::tuple<Args...>;
455  using ArgumentMatcherTuple = std::tuple<Matcher<Args>...>;
456  using MakeResultVoid = void(Args...);
458 };
459 
460 template <typename R, typename... Args>
461 constexpr size_t Function<R(Args...)>::ArgumentCount;
462 
463 bool Base64Unescape(const std::string& encoded, std::string* decoded);
464 
465 #ifdef _MSC_VER
466 # pragma warning(pop)
467 #endif
468 
469 } // namespace internal
470 } // namespace testing
471 
472 #endif // GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
testing
Definition: aws_request_signer_test.cc:25
testing::internal::IllegalDoDefault
GTEST_API_ void IllegalDoDefault(const char *file, int line)
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:189
bloat_diff.severity
def severity
Definition: bloat_diff.py:143
testing::internal::FailureReporterInterface::ReportFailure
virtual void ReportFailure(FailureType type, const char *file, int line, const std::string &message)=0
bool
bool
Definition: setup_once.h:312
GTEST_API_
#define GTEST_API_
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:754
testing::internal::GetFailureReporter
GTEST_API_ FailureReporterInterface * GetFailureReporter()
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:112
testing::internal::RelationToSourceCopy
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:1047
testing::internal::kErrorVerbosity
const char kErrorVerbosity[]
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:306
testing::internal::LosslessArithmeticConvertibleImpl
std::integral_constant< bool,(kFromKind==kBool) ? true :(kFromKind !=kToKind) ? false :(kFromKind==kInteger &&(((sizeof(From)< sizeof(To)) &&!(std::is_signed< From >::value &&!std::is_signed< To >::value))||((sizeof(From)==sizeof(To)) &&(std::is_signed< From >::value==std::is_signed< To >::value)))) ? true :(kFromKind==kFloatingPoint &&(sizeof(From)<=sizeof(To))) ? true :false > LosslessArithmeticConvertibleImpl
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:188
false
#define false
Definition: setup_once.h:323
testing::internal::Log
GTEST_API_ void Log(LogSeverity severity, const std::string &message, int stack_frames_to_skip)
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:149
testing::internal::FailureReporterInterface::kNonfatal
@ kNonfatal
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:208
testing::internal::FailureReporterInterface::FailureType
FailureType
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:207
names
sub_type names
Definition: cxa_demangle.cpp:4905
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
testing::internal::WithoutMatchers::WithoutMatchers
WithoutMatchers()
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:287
testing::Args
internal::ArgsMatcher< InnerMatcher > Args(const InnerMatcher &matcher)
Definition: cares/cares/test/gmock-1.8.0/gmock/gmock.h:12951
file
Definition: bloaty/third_party/zlib/examples/gzappend.c:170
testing::internal::ConvertIdentifierNameToWords
GTEST_API_ std::string ConvertIdentifierNameToWords(const char *id_name)
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:72
testing::internal::Function
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:493
xds_manager.p
p
Definition: xds_manager.py:60
testing::internal::StlContainerView::Copy
static type Copy(const RawContainer &container)
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:346
testing::internal::kWarning
@ kWarning
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:296
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
T
#define T(upbtypeconst, upbtype, ctype, default_value)
true
#define true
Definition: setup_once.h:324
testing::internal::IndexSequence
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:1125
testing::internal::kInfoVerbosity
const char kInfoVerbosity[]
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:302
testing::internal::TypeKind
TypeKind
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:114
testing::internal::StlContainerView< ::std::tuple< ElementPointer, Size > >::type
internal::NativeArray< RawElement > type
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:380
testing::internal::StlContainerView< ::std::tuple< ElementPointer, Size > >::Copy
static type Copy(const ::std::tuple< ElementPointer, Size > &array)
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:388
testing::internal::Base64Unescape
bool Base64Unescape(const std::string &encoded, std::string *decoded)
Definition: googletest/googlemock/src/gmock-internal-utils.cc:227
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
array
Definition: undname.c:101
testing::internal::StlContainerView< ::std::tuple< ElementPointer, Size > >::ConstReference
static const_reference ConstReference(const ::std::tuple< ElementPointer, Size > &array)
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:383
testing::internal::RemoveConstFromKey
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:450
testing::internal::RelationToSourceReference
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:1046
testing::internal::Function< R(Args...)>::ArgumentTuple
std::tuple< Args... > ArgumentTuple
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:502
testing::internal::NativeArray
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:1058
absl::inlined_vector_internal::Pointer
typename AllocatorTraits< A >::pointer Pointer
Definition: abseil-cpp/absl/container/internal/inlined_vector.h:52
testing::internal::LosslessArithmeticConvertibleImpl
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:173
testing::internal::ApplyImpl
auto ApplyImpl(F &&f, Tuple &&args, IndexSequence< Idx... >) -> decltype(std::forward< F >(f)(std::get< Idx >(std::forward< Tuple >(args))...))
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:465
testing::internal::kFloatingPoint
@ kFloatingPoint
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:115
testing::internal::kWarningVerbosity
const char kWarningVerbosity[]
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:304
benchmark::internal::Function
void() Function(State &)
Definition: benchmark/include/benchmark/benchmark.h:826
testing::internal::StlContainerView< Element[N]>::ConstReference
static const_reference ConstReference(const Element(&array)[N])
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:362
testing::internal::GMOCK_DECLARE_KIND_
GMOCK_DECLARE_KIND_(bool, kBool)
testing::internal::MakeIndexSequence
typename MakeIndexSequenceImpl< N >::type MakeIndexSequence
Definition: boringssl-with-bazel/src/third_party/googletest/include/gtest/internal/gtest-internal.h:1189
testing::internal::FailureReporterInterface::~FailureReporterInterface
virtual ~FailureReporterInterface()
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:211
testing::internal::Function< R(Args...)>::MakeResultVoid
void(Args...) MakeResultVoid
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:504
F
#define F(b, c, d)
Definition: md4.c:112
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
testing::internal::LogSeverity
LogSeverity
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:294
testing::internal::KindOf::value
@ value
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:120
testing::internal::Apply
auto Apply(F &&f, Tuple &&args) -> decltype(ApplyImpl(std::forward< F >(f), std::forward< Tuple >(args), MakeIndexSequence< std::tuple_size< Tuple >::value >()))
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:472
testing::internal::Function< R(Args...)>::Result
R Result
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:497
value
const char * value
Definition: hpack_parser_table.cc:165
testing::internal::kBool
@ kBool
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:115
testing::internal::kInteger
@ kInteger
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:115
testing::internal::GetRawPointer
const Pointer::element_type * GetRawPointer(const Pointer &p)
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:92
testing::internal::WithoutMatchers
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:328
GMOCK_KIND_OF_
#define GMOCK_KIND_OF_(type)
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:151
testing::internal::StlContainerView::ConstReference
static const_reference ConstReference(const RawContainer &container)
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:341
testing::internal::Invalid
T Invalid()
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:356
N
#define N
Definition: sync_test.cc:37
testing::internal::Assert
void Assert(bool condition, const char *file, int line)
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:276
I
#define I(b, c, d)
Definition: md5.c:120
testing::internal::FailureReporterInterface
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:204
testing::internal::kInfo
@ kInfo
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:295
testing::internal::Function< R(Args...)>::MakeResultIgnoredValue
IgnoredValue(Args...) MakeResultIgnoredValue
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:505
testing::internal::RemoveConstFromKey< std::pair< const K, V > >::type
std::pair< K, V > type
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:408
fix_build_deps.r
r
Definition: fix_build_deps.py:491
std
Definition: grpcpp/impl/codegen/async_unary_call.h:407
testing::internal::GetWithoutMatchers
GTEST_API_ WithoutMatchers GetWithoutMatchers()
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:187
testing::internal::JoinAsKeyValueTuple
GTEST_API_ std::string JoinAsKeyValueTuple(const std::vector< const char * > &names, const Strings &values)
Definition: googletest/googlemock/src/gmock-internal-utils.cc:58
values
std::array< int64_t, Size > values
Definition: abseil-cpp/absl/container/btree_benchmark.cc:608
regen-readme.line
line
Definition: regen-readme.py:30
testing::internal::WithoutMatchers::GetWithoutMatchers
friend GTEST_API_ WithoutMatchers GetWithoutMatchers()
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:187
testing::internal::IgnoredValue
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:110
testing::internal::Strings
::std::vector< ::std::string > Strings
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest-printers.h:872
testing::internal::RemoveConstFromKey::type
T type
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:402
testing::internal::StlContainerView< Element[N]>::type
internal::NativeArray< RawElement > type
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:354
testing::internal::LogIsVisible
GTEST_API_ bool LogIsVisible(LogSeverity severity)
Definition: bloaty/third_party/googletest/googlemock/src/gmock-internal-utils.cc:128
testing::internal::StlContainerView< Element[N]>::Copy
static type Copy(const Element(&array)[N])
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:367
testing::internal::FailureReporterInterface::kFatal
@ kFatal
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:208
testing::internal::To
Definition: bloaty/third_party/googletest/googletest/test/googletest-port-test.cc:192
internal
Definition: benchmark/test/output_test_helper.cc:20
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
testing::internal::ElemFromList
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:1165
testing::internal::Function< R(Args...)>::ArgumentMatcherTuple
std::tuple< Matcher< Args >... > ArgumentMatcherTuple
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:503
pair
std::pair< std::string, std::string > pair
Definition: abseil-cpp/absl/container/internal/raw_hash_set_benchmark.cc:78
testing::internal::StlContainerView< ::std::tuple< ElementPointer, Size > >::RawElement
std::remove_const< typename std::pointer_traits< ElementPointer >::element_type >::type RawElement
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:379
testing::internal::Expect
void Expect(bool condition, const char *file, int line, const std::string &msg)
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:282
testing::internal::kOther
@ kOther
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:115
container
static struct async_container * container
Definition: benchmark-million-async.c:33
testing::internal::StlContainerView< Element[N]>::RawElement
std::remove_const< Element >::type RawElement
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:353
testing::internal::StlContainerView::const_reference
const typedef type & const_reference
Definition: bloaty/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:388
testing::internal::StlContainerView::type
RawContainer type
Definition: googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:338


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:31