| 10630 | } |
| 10631 | const T* Current() const override { return &value_; } |
| 10632 | bool Equals(const ParamIteratorInterface<T>& other) const override { |
| 10633 | // Having the same base generator guarantees that the other |
| 10634 | // iterator is of the same type and we can downcast. |
| 10635 | GTEST_CHECK_(BaseGenerator() == other.BaseGenerator()) |
| 10636 | << "The program attempted to compare iterators " |
| 10637 | << "from different generators." << std::endl; |
| 10638 | const int other_index = |
| 10639 | CheckedDowncastToActualType<const Iterator>(&other)->index_; |
| 10640 | return index_ == other_index; |
| 10641 | } |
| 10642 | |
| 10643 | private: |
| 10644 | Iterator(const Iterator& other) |
no test coverage detected