| 10213 | } |
| 10214 | virtual const T* Current() const { return &value_; } |
| 10215 | virtual bool Equals(const ParamIteratorInterface<T>& other) const { |
| 10216 | // Having the same base generator guarantees that the other |
| 10217 | // iterator is of the same type and we can downcast. |
| 10218 | GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) |
| 10219 | << "The program attempted to compare iterators " |
| 10220 | << "from different generators." << std::endl; |
| 10221 | const int other_index = |
| 10222 | CheckedDowncastToActualType<const Iterator>(&other)->index_; |
| 10223 | return index_ == other_index; |
| 10224 | } |
| 10225 | |
| 10226 | private: |
| 10227 | Iterator(const Iterator& other) |
no test coverage detected