The type should be ::testing::Matcher<std::string>
, so:
::testing::Matcher<std::string> expected[] = {IsDelay(7), "read",
IsDelay(5), "write"};
See the Matching Containers section in the docs, specifically the example:
// Or, an array of element matchers. Matcher<int> expected_vector2 = { 1, Gt(2), _, 3, ... }; EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector2)));