#ifndef COMPONENTS_FEED_CORE_V2_TEST_TEST_UTIL_H_
#define COMPONENTS_FEED_CORE_V2_TEST_TEST_UTIL_H_
#include <string>
#include <string_view>
#include "base/functional/callback.h"
#include "base/time/time.h"
#include "components/feed/core/v2/test/proto_printer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feed {
const base::TimeDelta kEpsilon = …;
#define EXPECT_TIME_EQ(WANT, GOT) …
#define EXPECT_STRINGS_EQUAL(WANT, GOT) …
std::string TrimLines(std::string_view text);
MATCHER_P(EqualsTextProto, message, message) { … }
MATCHER_P(EqualsProto, message, ToTextProto(message)) { … }
void RunLoopUntil(base::RepeatingCallback<bool()> criteria,
base::OnceCallback<std::string()> failure_message_callback);
void RunLoopUntil(base::RepeatingCallback<bool()> criteria,
const std::string& failure_message);
}
#endif