Home | History | Annotate | Download | only in test

Lines Matching refs:vector_

669       vector_.push_back(i);
719 TestingVector vector_;
726 ShuffleRange(&random_, 0, 0, &vector_);
727 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
728 ASSERT_PRED1(VectorIsUnshuffled, vector_);
731 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_);
732 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
733 ASSERT_PRED1(VectorIsUnshuffled, vector_);
736 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_);
737 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
738 ASSERT_PRED1(VectorIsUnshuffled, vector_);
741 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_);
742 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
743 ASSERT_PRED1(VectorIsUnshuffled, vector_);
748 ShuffleRange(&random_, 0, 1, &vector_);
749 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
750 ASSERT_PRED1(VectorIsUnshuffled, vector_);
753 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_);
754 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
755 ASSERT_PRED1(VectorIsUnshuffled, vector_);
758 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_);
759 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
760 ASSERT_PRED1(VectorIsUnshuffled, vector_);
767 Shuffle(&random_, &vector_);
768 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
769 EXPECT_FALSE(VectorIsUnshuffled(vector_)) << vector_;
773 EXPECT_NE(0, vector_[0]);
774 EXPECT_NE(kVectorSize - 1, vector_[kVectorSize - 1]);
780 ShuffleRange(&random_, 0, kRangeSize, &vector_);
782 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
783 EXPECT_PRED3(RangeIsShuffled, vector_, 0, kRangeSize);
784 EXPECT_PRED3(RangeIsUnshuffled, vector_, kRangeSize, kVectorSize);
789 ShuffleRange(&random_, kRangeSize, kVectorSize, &vector_);
791 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
792 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize);
793 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, kVectorSize);
798 ShuffleRange(&random_, kRangeSize, 2*kRangeSize, &vector_);
800 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
801 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize);
802 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, 2*kRangeSize);
803 EXPECT_PRED3(RangeIsUnshuffled, vector_, 2*kRangeSize, kVectorSize);
813 Shuffle(&random_, &vector_);
817 ASSERT_PRED1(VectorIsNotCorrupt, vector_);
821 EXPECT_EQ(vector_[i], vector2[i]) << " where i is " << i;
6696 : vector_(vector), id_(id) {}
6700 vector_->push_back(GetEventDescription("OnTestProgramStart"));
6704 vector_->push_back(GetEventDescription("OnTestProgramEnd"));
6709 vector_->push_back(GetEventDescription("OnTestIterationStart"));
6714 vector_->push_back(GetEventDescription("OnTestIterationEnd"));
6724 std::vector<String>* vector_;