Lines Matching full:vector_
636 vector_.push_back(i);
686 TestingVector vector_;
693 ShuffleRange(&random_, 0, 0, &vector_);
694 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
695 ASSERT_PRED1(VectorIsUnshuffled, vector_);
698 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_);
699 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
700 ASSERT_PRED1(VectorIsUnshuffled, vector_);
703 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_);
704 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
705 ASSERT_PRED1(VectorIsUnshuffled, vector_);
708 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_);
709 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
710 ASSERT_PRED1(VectorIsUnshuffled, vector_);
715 ShuffleRange(&random_, 0, 1, &vector_);
716 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
717 ASSERT_PRED1(VectorIsUnshuffled, vector_);
720 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_);
721 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
722 ASSERT_PRED1(VectorIsUnshuffled, vector_);
725 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_);
726 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
727 ASSERT_PRED1(VectorIsUnshuffled, vector_);
734 Shuffle(&random_, &vector_);
735 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
736 EXPECT_FALSE(VectorIsUnshuffled(vector_)) << vector_;
740 EXPECT_NE(0, vector_[0]);
741 EXPECT_NE(kVectorSize - 1, vector_[kVectorSize - 1]);
747 ShuffleRange(&random_, 0, kRangeSize, &vector_);
749 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
750 EXPECT_PRED3(RangeIsShuffled, vector_, 0, kRangeSize);
751 EXPECT_PRED3(RangeIsUnshuffled, vector_, kRangeSize, kVectorSize);
756 ShuffleRange(&random_, kRangeSize, kVectorSize, &vector_);
758 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
759 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize);
760 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, kVectorSize);
765 ShuffleRange(&random_, kRangeSize, 2*kRangeSize, &vector_);
767 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
768 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize);
769 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, 2*kRangeSize);
770 EXPECT_PRED3(RangeIsUnshuffled, vector_, 2*kRangeSize, kVectorSize);
780 Shuffle(&random_, &vector_);
784 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
788 EXPECT_EQ(vector_[i], vector2[i]) << " where i is " << i;
6470 : vector_(vector), id_(id) {}
6474 vector_->push_back(GetEventDescription("OnTestProgramStart"));
6478 vector_->push_back(GetEventDescription("OnTestProgramEnd"));
6483 vector_->push_back(GetEventDescription("OnTestIterationStart"));
6488 vector_->push_back(GetEventDescription("OnTestIterationEnd"));
6498 std::vector<String>* vector_;