#include "base/i18n/message_formatter.h"
#include <memory>
#include "base/i18n/rtl.h"
#include "base/i18n/unicodestring.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/icu/source/common/unicode/unistr.h"
#include "third_party/icu/source/i18n/unicode/datefmt.h"
#include "third_party/icu/source/i18n/unicode/msgfmt.h"
MessageFormatterTest;
namespace base {
namespace i18n {
class MessageFormatterTest : public testing::Test { … };
namespace {
void AppendFormattedDateTime(const std::unique_ptr<icu::DateFormat>& df,
const Time& now,
std::u16string* result) { … }
}
TEST_F(MessageFormatterTest, PluralNamedArgs) { … }
TEST_F(MessageFormatterTest, PluralNamedArgsWithOffset) { … }
TEST_F(MessageFormatterTest, PluralNumberedArgs) { … }
TEST_F(MessageFormatterTest, PluralNumberedArgsWithDate) { … }
TEST_F(MessageFormatterTest, DateTimeAndNumber) { … }
TEST_F(MessageFormatterTest, SelectorSingleOrMultiple) { … }
}
}