#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/safe_search_api/safe_search/safe_search_url_checker_client.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/json/json_writer.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "net/base/net_errors.h"
#include "net/http/http_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
_;
namespace safe_search_api {
namespace {
constexpr char kSafeSearchApiUrl[] = …;
std::string BuildResponse(bool is_porn) { … }
const char* kURLs[] = …;
}
class SafeSearchURLCheckerClientTest : public testing::Test { … };
TEST_F(SafeSearchURLCheckerClientTest, Simple) { … }
}