#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <utility>
#include "base/memory/raw_ptr.h"
#include "net/base/io_buffer.h"
#include "net/base/test_completion_callback.h"
#include "net/filter/mock_source_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/webui/i18n_source_stream.h"
namespace ui {
namespace {
const int kBufferSize = …;
const int kMinimumSize = …;
const int kSmallSize = …;
const int kInOneReadSize = …;
struct I18nTest { … };
constexpr I18nTest kTestEmpty = …;
constexpr I18nTest kTestNoReplacements = …;
constexpr I18nTest kTestTagAtEndOfLine = …;
constexpr I18nTest kTestOneReplacement = …;
constexpr I18nTest kTestOneReplacementPlus = …;
constexpr I18nTest kTestThreeReplacements = …;
constexpr I18nTest kTestExtraBraces = …;
constexpr I18nTest kTest1 = …;
constexpr I18nTest kTest2 = …;
struct I18nTestParam { … };
}
class I18nSourceStreamTest : public ::testing::TestWithParam<I18nTestParam> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(I18nSourceStreamTest, FilterTests) { … }
TEST_P(I18nSourceStreamTest, LargeFilterTests) { … }
}