Lines Matching refs:vector_
843 vector_.push_back(i); in VectorShuffleTest()
893 TestingVector vector_; member in __anona8d7a1d00111::VectorShuffleTest
900 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
901 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
902 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
905 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
906 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
907 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
910 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
911 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
912 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
915 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
916 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
917 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
922 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
923 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
924 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
927 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
928 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
929 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
932 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
933 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
934 ASSERT_PRED1(VectorIsUnshuffled, vector_); in TEST_F()
941 Shuffle(&random_, &vector_); in TEST_F()
942 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
943 EXPECT_FALSE(VectorIsUnshuffled(vector_)) << vector_; in TEST_F()
947 EXPECT_NE(0, vector_[0]); in TEST_F()
948 EXPECT_NE(kVectorSize - 1, vector_[kVectorSize - 1]); in TEST_F()
954 ShuffleRange(&random_, 0, kRangeSize, &vector_); in TEST_F()
956 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
957 EXPECT_PRED3(RangeIsShuffled, vector_, 0, kRangeSize); in TEST_F()
958 EXPECT_PRED3(RangeIsUnshuffled, vector_, kRangeSize, kVectorSize); in TEST_F()
963 ShuffleRange(&random_, kRangeSize, kVectorSize, &vector_); in TEST_F()
965 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
966 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize); in TEST_F()
967 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, kVectorSize); in TEST_F()
972 ShuffleRange(&random_, kRangeSize, 2*kRangeSize, &vector_); in TEST_F()
974 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
975 EXPECT_PRED3(RangeIsUnshuffled, vector_, 0, kRangeSize); in TEST_F()
976 EXPECT_PRED3(RangeIsShuffled, vector_, kRangeSize, 2*kRangeSize); in TEST_F()
977 EXPECT_PRED3(RangeIsUnshuffled, vector_, 2*kRangeSize, kVectorSize); in TEST_F()
987 Shuffle(&random_, &vector_); in TEST_F()
991 ASSERT_PRED1(VectorIsNotCorrupt, vector_); in TEST_F()
995 EXPECT_EQ(vector_[i], vector2[i]) << " where i is " << i; in TEST_F()
6773 : vector_(vector), id_(id) {} in SequenceTestingListener()
6777 vector_->push_back(GetEventDescription("OnTestProgramStart")); in OnTestProgramStart()
6781 vector_->push_back(GetEventDescription("OnTestProgramEnd")); in OnTestProgramEnd()
6786 vector_->push_back(GetEventDescription("OnTestIterationStart")); in OnTestIterationStart()
6791 vector_->push_back(GetEventDescription("OnTestIterationEnd")); in OnTestIterationEnd()
6801 std::vector<std::string>* vector_; member in SequenceTestingListener