Merge branch 'google:master' into master

This commit is contained in:
Anthony Graca 2021-11-12 14:06:40 -08:00 committed by GitHub
commit 99bfc818fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5424,12 +5424,14 @@ class Streamlike {
} }
private: private:
class ConstIter : public std::iterator<std::input_iterator_tag, class ConstIter {
value_type,
ptrdiff_t,
const value_type*,
const value_type&> {
public: public:
using iterator_category = std::input_iterator_tag;
using value_type = T;
using difference_type = ptrdiff_t;
using pointer = const value_type*;
using reference = const value_type&;
ConstIter(const Streamlike* s, ConstIter(const Streamlike* s,
typename std::list<value_type>::iterator pos) typename std::list<value_type>::iterator pos)
: s_(s), pos_(pos) {} : s_(s), pos_(pos) {}
@ -7287,7 +7289,7 @@ TEST(ElementsAreTest, CanDescribeNegationOfExpectingNoElement) {
EXPECT_EQ("isn't empty", DescribeNegation(m)); EXPECT_EQ("isn't empty", DescribeNegation(m));
} }
TEST(ElementsAreTest, CanDescribeNegationOfExpectingOneElment) { TEST(ElementsAreTest, CanDescribeNegationOfExpectingOneElement) {
Matcher<const list<int>&> m = ElementsAre(Gt(5)); Matcher<const list<int>&> m = ElementsAre(Gt(5));
EXPECT_EQ( EXPECT_EQ(
"doesn't have 1 element, or\n" "doesn't have 1 element, or\n"