chromium/content/browser/sms/sms_parser_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/sms/sms_parser.h"

#include <string>

#include "base/strings/stringprintf.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace content {

namespace {

url::Origin ParseOrigin(const std::string& message) {}

std::string ParseOTP(const std::string& message) {}

}  // namespace

TEST(SmsParserTest, NoToken) {}

TEST(SmsParserTest, WithTokenInvalidUrl) {}

TEST(SmsParserTest, NoSpace) {}

TEST(SmsParserTest, MultipleSpace) {}

TEST(SmsParserTest, WhiteSpaceThatIsNotSpace) {}

TEST(SmsParserTest, WordInBetween) {}

TEST(SmsParserTest, InvalidUrl) {}

TEST(SmsParserTest, FtpScheme) {}

TEST(SmsParserTest, Mailto) {}

TEST(SmsParserTest, MissingOneTimeCodeParameter) {}

TEST(SmsParserTest, Basic) {}

TEST(SmsParserTest, Realistic) {}

TEST(SmsParserTest, OneTimeCode) {}

TEST(SmsParserTest, LocalhostForDevelopment) {}

TEST(SmsParserTest, Paths) {}

TEST(SmsParserTest, Message) {}

TEST(SmsParserTest, Whitespace) {}

TEST(SmsParserTest, Dashes) {}

TEST(SmsParserTest, CapitalLetters) {}

TEST(SmsParserTest, Numbers) {}

TEST(SmsParserTest, ForbiddenCharacters) {}

TEST(SmsParserTest, Newlines) {}

TEST(SmsParserTest, TwoTokens) {}

TEST(SmsParserTest, Ports) {}

TEST(SmsParserTest, Username) {}

TEST(SmsParserTest, QueryParams) {}

TEST(SmsParserTest, HarmlessOriginsButInvalid) {}

TEST(SmsParserTest, AppHash) {}

TEST(SmsParserTest, OneTimeCodeCharRanges) {}

TEST(SmsParserTest, EmbeddedIFrameAfterSingleSpace) {}

TEST(SmsParserTest, EmbeddedIFrameAfterMultipleSpaces) {}

TEST(SmsParserTest, EmbeddedIFrameAfterTab) {}

TEST(SmsParserTest, EmbeddedIFrameAfterNewLine) {}

TEST(SmsParserTest, EmbeddedIFrameAfterNonWhiteSpace) {}

TEST(SmsParserTest, OnlyFirstNonTopDomainConsidered) {}

TEST(SmsParserTest, EmbeddedIFrameWithIncorrectToken) {}

}  // namespace content