8000 Google Test problem? · Issue #11 · durdyev/webdriverxx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Google Test problem? #11
Open
Open
@sherifi

Description

@sherifi

The problem is here:

TEST(WaitForMatch, CanUseGMockMatchers) {
using namespace ::testing;
ASSERT_EQ(123, WaitForMatch([]{ return 123; }, Eq(123)));
ASSERT_EQ(123, WaitForMatch([]{ return 123; }, 123));
ASSERT_EQ("abc", WaitForMatch([]{ return std::string("abc"); }, "abc"));
ASSERT_EQ("abc", WaitForMatch([]{ return std::string("abc"); }, Eq("abc")));
ASSERT_EQ(123, WaitForMatch([]{ return 123; }, _));
ASSERT_EQ(123, WaitForMatch([]{ return 123; }, An()));
std::vector v(1, 123);
ASSERT_EQ(v, WaitForMatch([&v]{ return v; }, Contains(123)));
ASSERT_EQ(v, WaitForMatch([&v]{ return v; }, Not(Contains(456))));
Duration timeout = 0;
ASSERT_THROW(WaitForMatch([&v]{ return v; }, Not(Contains(123)), timeout), WebDriverException);
}

in the wait_match_test.cpp

Functions An(), Contains() and Not() are not defined.

Do anyone have the idea how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0