chromium/components/continuous_search/browser/search_result_extractor_client_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/continuous_search/browser/search_result_extractor_client.h"

#include <utility>

#include "base/functional/callback.h"
#include "components/continuous_search/browser/test/fake_search_result_extractor.h"
#include "components/continuous_search/common/public/mojom/continuous_search.mojom.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"

namespace continuous_search {

namespace {

const char kUrl[] =;

void CheckResponse(SearchResultExtractorClientStatus expected_status,
                   mojom::CategoryResultsPtr expected_results,
                   base::OnceClosure quit,
                   SearchResultExtractorClientStatus status,
                   mojom::CategoryResultsPtr results) {}

mojom::CategoryResultsPtr GenerateValidResults(const GURL& document_url) {}

}  // namespace

class SearchResultExtractorClientRenderViewHostTest
    : public content::RenderViewHostTestHarness {};

TEST_F(SearchResultExtractorClientRenderViewHostTest, RequestDataSuccess) {}

TEST_F(SearchResultExtractorClientRenderViewHostTest,
       RequestDataNoWebContents) {}

TEST_F(SearchResultExtractorClientRenderViewHostTest, RequestDataFailed) {}

TEST_F(SearchResultExtractorClientRenderViewHostTest, RequestDataUrlMismatch) {}

TEST_F(SearchResultExtractorClientRenderViewHostTest, NonSrpUrl) {}

}  // namespace continuous_search