summaryrefslogtreecommitdiff
path: root/lib/xray/tests
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-02-07 23:35:34 +0000
committerDean Michael Berris <dberris@google.com>2017-02-07 23:35:34 +0000
commit9a050b3e83389c8962f3baa55097578bf1f3c49f (patch)
tree35e6082aff9debca0cd28958b0095be0138dad42 /lib/xray/tests
parent95db1de9d8da0b4caddb3ad5c35959118864f58b (diff)
[XRay][compiler-rt][NFC] Turn ProudCase functions to humbleCase functions
Summary: As pointed out in casual reading of the XRay codebase, that we had some interesting named functions that didn't quite follow the LLVM coding conventions. Reviewers: chandlerc, dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29625 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@294373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/tests')
-rw-r--r--lib/xray/tests/unit/fdr_logging_test.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/xray/tests/unit/fdr_logging_test.cc b/lib/xray/tests/unit/fdr_logging_test.cc
index 34366927f..a1a6155fe 100644
--- a/lib/xray/tests/unit/fdr_logging_test.cc
+++ b/lib/xray/tests/unit/fdr_logging_test.cc
@@ -50,14 +50,14 @@ TEST(FDRLoggingTest, Simple) {
char TmpFilename[] = "fdr-logging-test.XXXXXX";
Options.Fd = mkstemp(TmpFilename);
ASSERT_NE(Options.Fd, -1);
- ASSERT_EQ(FDRLogging_init(kBufferSize, kBufferMax, &Options,
+ ASSERT_EQ(fdrLoggingInit(kBufferSize, kBufferMax, &Options,
sizeof(FDRLoggingOptions)),
XRayLogInitStatus::XRAY_LOG_INITIALIZED);
- FDRLogging_handleArg0(1, XRayEntryType::ENTRY);
- FDRLogging_handleArg0(1, XRayEntryType::EXIT);
- ASSERT_EQ(FDRLogging_finalize(), XRayLogInitStatus::XRAY_LOG_FINALIZED);
- ASSERT_EQ(FDRLogging_flush(), XRayLogFlushStatus::XRAY_LOG_FLUSHED);
- ASSERT_EQ(FDRLogging_reset(), XRayLogInitStatus::XRAY_LOG_UNINITIALIZED);
+ fdrLoggingHandleArg0(1, XRayEntryType::ENTRY);
+ fdrLoggingHandleArg0(1, XRayEntryType::EXIT);
+ ASSERT_EQ(fdrLoggingFinalize(), XRayLogInitStatus::XRAY_LOG_FINALIZED);
+ ASSERT_EQ(fdrLoggingFlush(), XRayLogFlushStatus::XRAY_LOG_FLUSHED);
+ ASSERT_EQ(fdrLoggingReset(), XRayLogInitStatus::XRAY_LOG_UNINITIALIZED);
// To do this properly, we have to close the file descriptor then re-open the
// file for reading this time.
@@ -89,16 +89,16 @@ TEST(FDRLoggingTest, Multiple) {
char TmpFilename[] = "fdr-logging-test.XXXXXX";
Options.Fd = mkstemp(TmpFilename);
ASSERT_NE(Options.Fd, -1);
- ASSERT_EQ(FDRLogging_init(kBufferSize, kBufferMax, &Options,
+ ASSERT_EQ(fdrLoggingInit(kBufferSize, kBufferMax, &Options,
sizeof(FDRLoggingOptions)),
XRayLogInitStatus::XRAY_LOG_INITIALIZED);
for (uint64_t I = 0; I < 100; ++I) {
- FDRLogging_handleArg0(1, XRayEntryType::ENTRY);
- FDRLogging_handleArg0(1, XRayEntryType::EXIT);
+ fdrLoggingHandleArg0(1, XRayEntryType::ENTRY);
+ fdrLoggingHandleArg0(1, XRayEntryType::EXIT);
}
- ASSERT_EQ(FDRLogging_finalize(), XRayLogInitStatus::XRAY_LOG_FINALIZED);
- ASSERT_EQ(FDRLogging_flush(), XRayLogFlushStatus::XRAY_LOG_FLUSHED);
- ASSERT_EQ(FDRLogging_reset(), XRayLogInitStatus::XRAY_LOG_UNINITIALIZED);
+ ASSERT_EQ(fdrLoggingFinalize(), XRayLogInitStatus::XRAY_LOG_FINALIZED);
+ ASSERT_EQ(fdrLoggingFlush(), XRayLogFlushStatus::XRAY_LOG_FLUSHED);
+ ASSERT_EQ(fdrLoggingReset(), XRayLogInitStatus::XRAY_LOG_UNINITIALIZED);
// To do this properly, we have to close the file descriptor then re-open the
// file for reading this time.