summaryrefslogtreecommitdiff
path: root/libc/test/src/stdlib/strtod_test.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-09-26 11:45:04 +0200
committerGitHub <noreply@github.com>2023-09-26 11:45:04 +0200
commitb6bc9d72f65a5086f310f321e969d96e9a559e75 (patch)
tree1e9a9f8c36c9dfc0106507f7b7a0055af83c4a07 /libc/test/src/stdlib/strtod_test.cpp
parent7675f541f75baa20e8ec007cd625a837e89fc01f (diff)
[libc] Mass replace enclosing namespace (#67032)
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
Diffstat (limited to 'libc/test/src/stdlib/strtod_test.cpp')
-rw-r--r--libc/test/src/stdlib/strtod_test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/test/src/stdlib/strtod_test.cpp b/libc/test/src/stdlib/strtod_test.cpp
index 70129ba0714d..b1bdd89e41fd 100644
--- a/libc/test/src/stdlib/strtod_test.cpp
+++ b/libc/test/src/stdlib/strtod_test.cpp
@@ -17,13 +17,13 @@
#include <limits.h>
#include <stddef.h>
-using __llvm_libc::fputil::testing::ForceRoundingModeTest;
-using __llvm_libc::fputil::testing::RoundingMode;
+using LIBC_NAMESPACE::fputil::testing::ForceRoundingModeTest;
+using LIBC_NAMESPACE::fputil::testing::RoundingMode;
-using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
-using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
+using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails;
+using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
-class LlvmLibcStrToDTest : public __llvm_libc::testing::Test,
+class LlvmLibcStrToDTest : public LIBC_NAMESPACE::testing::Test,
ForceRoundingModeTest<RoundingMode::Nearest> {
public:
void run_test(const char *inputString, const ptrdiff_t expectedStrLen,
@@ -44,11 +44,11 @@ public:
// This is so that the result can be compared in parts.
char *str_end = nullptr;
- __llvm_libc::fputil::FPBits<double> expected_fp =
- __llvm_libc::fputil::FPBits<double>(expectedRawData);
+ LIBC_NAMESPACE::fputil::FPBits<double> expected_fp =
+ LIBC_NAMESPACE::fputil::FPBits<double>(expectedRawData);
libc_errno = 0;
- double result = __llvm_libc::strtod(inputString, &str_end);
+ double result = LIBC_NAMESPACE::strtod(inputString, &str_end);
if (expectedErrno == 0)
EXPECT_THAT(result, Succeeds<double>(static_cast<double>(expected_fp)));
else