This source file includes following definitions.
- TEST
#include "chrome/renderer/net/renderer_net_predictor.h"
#include "testing/gtest/include/gtest/gtest.h"
#include <algorithm>
namespace {
class RenderDnsMasterTest : public testing::Test {
};
TEST(RenderDnsMasterTest, NumericIpDiscardCheck) {
const std::string A("a.com"), B("b.net"), C("www.other.uk");
const std::string N1("1.3."), N2("5.5.7.12");
#define TESTNAME(string) RendererNetPredictor::is_numeric_ip((string.data()), \
(string).size())
EXPECT_TRUE(TESTNAME(N1));
EXPECT_TRUE(TESTNAME(N2));
EXPECT_FALSE(TESTNAME(A));
EXPECT_FALSE(TESTNAME(B));
EXPECT_FALSE(TESTNAME(C));
#undef TESTNAME
}
}