This source file includes following definitions.
- ExpectFeatureMapsAreEqual
#include "chrome/renderer/safe_browsing/test_utils.h"
#include <map>
#include <string>
#include "chrome/renderer/safe_browsing/features.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace safe_browsing {
void ExpectFeatureMapsAreEqual(const FeatureMap& first,
const FeatureMap& second) {
std::map<std::string, double> sorted_first(first.features().begin(),
first.features().end());
std::map<std::string, double> sorted_second(second.features().begin(),
second.features().end());
EXPECT_THAT(sorted_first, testing::ContainerEq(sorted_second));
}
}