#include "components/commerce/content/browser/web_extractor_impl.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "components/commerce/content/browser/web_contents_wrapper.h"
#include "components/commerce/core/mojom/commerce_web_extractor.mojom.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace commerce {
class WebExtractorImplTest : public content::RenderViewHostTestHarness { … };
class MockCommerceWebExtractor
: public commerce_web_extractor::mojom::CommerceWebExtractor { … };
TEST_F(WebExtractorImplTest, TestExtraction) { … }
TEST_F(WebExtractorImplTest, TestNullWebContents) { … }
}