Lines Matching defs:std
113 ::std::string PrintToString(const T& value);
138 typename std::enable_if<!std::is_convertible<T, Sink>::value,
144 GTEST_API_ std::string AppendUserMessage(const std::string& gtest_msg,
154 // are enabled). We derive it from std::runtime_error, which is for
156 // std::runtime_error inherits from std::exception, many testing
158 class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
174 GTEST_API_ std::vector<EditType> CalculateOptimalEdits(
175 const std::vector<size_t>& left, const std::vector<size_t>& right);
178 GTEST_API_ std::vector<EditType> CalculateOptimalEdits(
179 const std::vector<std::string>& left,
180 const std::vector<std::string>& right);
183 GTEST_API_ std::string CreateUnifiedDiff(const std::vector<std::string>& left,
184 const std::vector<std::string>& right,
206 const std::string& expected_value,
207 const std::string& actual_value,
211 GTEST_API_ std::string GetBoolAssertionFailureMessage(
258 std::numeric_limits<RawType>::digits - 1;
477 CodeLocation(const std::string& a_file, int a_line)
480 std::string file;
503 typename std::conditional<sizeof(T) != 0, ::testing::Test, void>::type;
599 ::std::make_pair(test_name, CodeLocation(file, line)));
603 bool TestExists(const std::string& test_name) const {
607 const CodeLocation& GetCodeLocation(const std::string& test_name) const {
621 typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
648 inline std::string GetPrefixUntilComma(const char* str) {
650 return comma == nullptr ? str : std::string(str, comma);
655 void SplitString(const ::std::string& str, char delimiter,
656 ::std::vector<::std::string>* dest);
662 static std::string GetName(int i) {
673 void GenerateNamesRecursively(internal::None, std::vector<std::string>*, int) {}
676 void GenerateNamesRecursively(Types, std::vector<std::string>* result, int i) {
683 std::vector<std::string> GenerateNames() {
684 std::vector<std::string> result;
705 const std::vector<std::string>& type_names =
714 (std::string(prefix) + (prefix[0] == '\0' ? "" : "/") + case_name +
745 const std::vector<std::string>& =
746 std::vector<std::string>() /*type_names*/) {
766 const std::vector<std::string>& type_names =
769 std::string test_name =
803 const std::vector<std::string>& =
804 std::vector<std::string>() /*type_names*/) {
809 // Returns the current OS stack trace as an std::string.
819 GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(int skip_count);
839 // Helper for declaring std::string within 'if' statement
844 explicit TrueWithString(const std::string& str) : value(str) {}
846 std::string value;
874 typename std::remove_const<typename std::remove_reference<T>::type>::type
878 // that return std::string.
883 static auto CheckDebugString(C*) -> typename std::is_same<
884 std::string, decltype(std::declval<const C>().DebugString())>::type;
886 static std::false_type CheckDebugString(...);
889 static auto CheckShortDebugString(C*) -> typename std::is_same<
890 std::string, decltype(std::declval<const C>().ShortDebugString())>::type;
892 static std::false_type CheckShortDebugString(...);
933 class Iterator = decltype(::std::declval<const C&>().begin()),
934 class = decltype(::std::declval<const C&>().end()),
935 class = decltype(++::std::declval<Iterator&>()),
936 class = decltype(*::std::declval<Iterator>()),
974 struct IsRecursiveContainerImpl<C, false> : public std::false_type {};
982 using value_type = decltype(*std::declval<typename C::const_iterator>());
984 std::is_same<typename std::remove_const<
985 typename std::remove_reference<value_type>::type>::type,
1120 static_assert(!std::is_const<Element>::value, "Type must not be const");
1121 static_assert(!std::is_reference<Element>::value,
1145 // Backport of std::index_sequence.
1163 // Backport of std::make_index_sequence.
1217 : value(std::forward<Arg>(t)) {}
1232 std::forward<Args>(args))... {}
1245 auto Apply(F&& f) -> decltype(std::forward<F>(f)(this->Get<Idx>()...)) {
1246 return std::forward<F>(f)(Get<Idx>()...);
1250 auto Apply(F&& f) const -> decltype(std::forward<F>(f)(this->Get<Idx>()...)) {
1251 return std::forward<F>(f)(Get<Idx>()...);
1255 // Analog to std::tuple but with different tradeoffs.
1257 // elements than std::tuple would. std::tuple has been seen to require an
1275 : FlatTuple::FlatTupleBase(tag, std::forward<Args>(args)...) {}
1311 namespace std {
1321 : std::integral_constant<size_t, sizeof...(Ts)> {};
1325 } // namespace std
1379 std::string { "an std::exception-derived error" }
1384 catch (typename std::conditional< \
1385 std::is_same<typename std::remove_cv<typename std::remove_reference< \
1387 std::exception>::value, \
1388 const ::testing::internal::NeverThrown&, const std::exception&>::type \
1435 catch (std::exception const& e) { \