Lines Matching defs:std
73 std::string operator()(const TestParamInfo<ParamType>& info) const {
164 std::unique_ptr<ParamIteratorInterface<T>> impl_;
203 std::shared_ptr<const ParamGeneratorInterface<T>> impl_;
251 << "from different generators." << std::endl;
312 typedef typename ::std::vector<T> ContainerType;
347 << "from different generators." << std::endl;
365 // Use of std::unique_ptr helps manage cached value's lifetime,
367 mutable std::unique_ptr<const T> value_;
381 std::string DefaultParamName(const TestParamInfo<ParamType>& info) {
468 virtual const std::string& GetTestSuiteName() const = 0;
495 GTEST_API_ void InsertSyntheticTestCase(const std::string& name,
514 using ParamNameGeneratorFunc = std::string(const TestParamInfo<ParamType>&);
521 const std::string& GetTestSuiteName() const override {
535 tests_.push_back(std::shared_ptr<TestInfo>(new TestInfo(
540 int AddTestSuiteInstantiation(const std::string& instantiation_name,
558 std::shared_ptr<TestInfo> test_info = *test_it;
562 const std::string& instantiation_name = gen_it->name;
568 std::string test_suite_name;
574 std::set<std::string> test_param_names;
582 std::string param_name =
589 << file << " line " << line << "" << std::endl;
593 << file << " line " << line << std::endl;
632 const std::string test_suite_base_name;
633 const std::string test_base_name;
634 const std::unique_ptr<TestMetaFactoryBase<ParamType>> test_meta_factory;
637 using TestInfoContainer = ::std::vector<std::shared_ptr<TestInfo>>;
642 InstantiationInfo(const std::string& name_in,
652 std::string name;
658 typedef ::std::vector<InstantiationInfo> InstantiationContainer;
660 static bool IsValidParamName(const std::string& name) {
665 for (std::string::size_type index = 0; index < name.size(); ++index) {
672 const std::string test_suite_name_;
750 using TestSuiteInfoContainer = ::std::vector<ParameterizedTestSuiteInfoBase*>;
785 std::map<std::string, TypeParameterizedTestSuiteInfo> suites_;
804 explicit ValueArray(Ts... v) : v_(FlatTupleConstructTag{}, std::move(v)...) {}
813 std::vector<T> MakeVector(IndexSequence<I...>) const {
814 return std::vector<T>{static_cast<T>(v_.template Get<I>())...};
824 : public ParamGeneratorInterface<::std::tuple<T...>> {
826 typedef ::std::tuple<T...> ParamType;
828 CartesianProductGenerator(const std::tuple<ParamGenerator<T>...>& g)
847 const std::tuple<ParamGenerator<T>...>& generators,
850 begin_(std::get<I>(generators).begin()...),
851 end_(std::get<I>(generators).end()...),
865 ++std::get<sizeof...(T) - 1>(current_);
881 << "from different generators." << std::endl;
892 (same = same && std::get<I>(current_) ==
893 std::get<I>(typed_other->current_))...};
901 if (std::get<ThisI>(current_) != std::get<ThisI>(end_)) return;
910 std::get<ThisI>(current_) = std::get<ThisI>(begin_);
911 ++std::get<NextI>(current_);
917 current_value_ = std::make_shared<ParamType>(*std::get<I>(current_)...);
922 (at_end = at_end || std::get<I>(current_) == std::get<I>(end_))...};
928 std::tuple<typename ParamGenerator<T>::iterator...> begin_;
929 std::tuple<typename ParamGenerator<T>::iterator...> end_;
930 std::tuple<typename ParamGenerator<T>::iterator...> current_;
931 std::shared_ptr<ParamType> current_value_;
936 std::tuple<ParamGenerator<T>...> generators_;
944 operator ParamGenerator<::std::tuple<T...>>() const {
945 return ParamGenerator<::std::tuple<T...>>(
950 std::tuple<Gen...> generators_;
957 : generator_(std::move(gen)) {}
972 if (it_ != end_) value_ = std::make_shared<To>(static_cast<To>(*it_));
981 if (it_ != end_) value_ = std::make_shared<To>(static_cast<To>(*it_));
992 << "from different generators." << std::endl;
1004 std::shared_ptr<To> value_;
1014 : generator_(std::move(g)) {}