chromium/base/strings/string_number_conversions_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "base/strings/string_number_conversions.h"

#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>

#include <cmath>
#include <limits>
#include <string_view>

#include "base/bit_cast.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

namespace {

template <typename INT>
struct NumberToStringTest {};

}  // namespace

TEST(StringNumberConversionsTest, NumberToString) {}

TEST(StringNumberConversionsTest, Uint64ToString) {}

TEST(StringNumberConversionsTest, SizeTToString) {}

TEST(StringNumberConversionsTest, StringToInt) {}

TEST(StringNumberConversionsTest, StringToUint) {}

TEST(StringNumberConversionsTest, StringToInt64) {}

TEST(StringNumberConversionsTest, StringToUint64) {}

TEST(StringNumberConversionsTest, StringToSizeT) {}

TEST(StringNumberConversionsTest, HexStringToInt) {}

TEST(StringNumberConversionsTest, HexStringToUInt) {}

TEST(StringNumberConversionsTest, HexStringToInt64) {}

TEST(StringNumberConversionsTest, HexStringToUInt64) {}

// Tests for HexStringToBytes, HexStringToString, HexStringToSpan.
TEST(StringNumberConversionsTest, HexStringToBytesStringSpan) {}

TEST(StringNumberConversionsTest, StringToDouble) {}

TEST(StringNumberConversionsTest, DoubleToString) {}

TEST(StringNumberConversionsTest, AppendHexEncodedByte) {}

TEST(StringNumberConversionsTest, HexEncode) {}

// Test cases of known-bad strtod conversions that motivated the use of dmg_fp.
// See https://bugs.chromium.org/p/chromium/issues/detail?id=593512.
TEST(StringNumberConversionsTest, StrtodFailures) {}

}  // namespace base