#include "components/facilitated_payments/content/renderer/facilitated_payments_agent.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "content/public/test/render_view_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_registry.h"
namespace payments::facilitated {
namespace {
class FacilitatedPaymentsAgentTest : public content::RenderViewTest { … };
TEST_F(FacilitatedPaymentsAgentTest, TriggerPixCodeDetection_NotFound) { … }
TEST_F(FacilitatedPaymentsAgentTest, TriggerPixCodeDetection_FoundValid) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_FoundValidInInputElement) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_NotFoundInEditableInput) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_NotFoundInNonTextInput) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_FoundValid_IgnoreCase) { … }
TEST_F(FacilitatedPaymentsAgentTest, TriggerPixCodeDetection_FoundInvalid) { … }
TEST_F(FacilitatedPaymentsAgentTest, TriggerPixCodeDetection_FoundTwoInvalid) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_IgnoreFirstInvalid) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_IgnoreSecondInvalid) { … }
TEST_F(FacilitatedPaymentsAgentTest,
TriggerPixCodeDetection_NotFoundWhenDeleting) { … }
}
}