Home | History | Annotate | Download | only in test

Lines Matching defs:vector

36 #include <vector>
187 class TestingVector : public std::vector<int> {
191 const TestingVector& vector) {
193 for (size_t i = 0; i < vector.size(); i++) {
194 os << vector[i] << " ";
560 std::vector<int> v;
579 std::vector<int> v;
598 std::vector<char> a;
610 std::vector<int> a;
640 static bool VectorIsCorrupt(const TestingVector& vector) {
641 if (kVectorSize != static_cast<int>(vector.size())) {
646 for (size_t i = 0; i < vector.size(); i++) {
647 const int e = vector[i];
654 // Vector size is correct, elements' range is correct, no
659 static bool VectorIsNotCorrupt(const TestingVector& vector) {
660 return !VectorIsCorrupt(vector);
663 static bool RangeIsShuffled(const TestingVector& vector, int begin, int end) {
665 if (i != vector[i]) {
673 const TestingVector& vector, int begin, int end) {
674 return !RangeIsShuffled(vector, begin, end);
677 static bool VectorIsShuffled(const TestingVector& vector) {
678 return RangeIsShuffled(vector, 0, static_cast<int>(vector.size()));
681 static bool VectorIsUnshuffled(const TestingVector& vector) {
682 return !VectorIsShuffled(vector);
1457 typedef std::vector<TestPartResult> TPRVector;
1484 // state, in particular the TestPartResult vector it holds.
1485 // test_part_results() returns a const reference to this vector.
6469 SequenceTestingListener(std::vector<String>* vector, const char* id)
6470 : vector_(vector), id_(id) {}
6498 std::vector<String>* vector_;
6505 std::vector<String> vec;