#include "components/optimization_guide/content/renderer/page_text_agent.h"
#include <string>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_refptr.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
class TestConsumer : public mojom::PageTextConsumer { … };
class PageTextAgentTest : public testing::Test { … };
TEST_F(PageTextAgentTest, IncreasesMax) { … }
TEST_F(PageTextAgentTest, MaxStaysSame) { … }
TEST_F(PageTextAgentTest, FinishedLoading) { … }
TEST_F(PageTextAgentTest, LongTextOnChunkEdge) { … }
TEST_F(PageTextAgentTest, LongTextOffOfChunkEdge) { … }
TEST_F(PageTextAgentTest, NoRequests) { … }
TEST_F(PageTextAgentTest, MultipleBindWithSet) { … }
}