aboutsummaryrefslogtreecommitdiff
path: root/util/trace_logging/scoped_trace_operations_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/trace_logging/scoped_trace_operations_unittest.cc')
-rw-r--r--util/trace_logging/scoped_trace_operations_unittest.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/util/trace_logging/scoped_trace_operations_unittest.cc b/util/trace_logging/scoped_trace_operations_unittest.cc
index 63fa1cba..a1eba626 100644
--- a/util/trace_logging/scoped_trace_operations_unittest.cc
+++ b/util/trace_logging/scoped_trace_operations_unittest.cc
@@ -21,12 +21,9 @@ using ::testing::_;
using ::testing::DoAll;
using ::testing::Invoke;
-using platform::kEmptyTraceId;
-using platform::MockLoggingPlatform;
-
// These tests validate that parameters are passed correctly by using the Trace
// Internals.
-constexpr auto category = platform::TraceCategory::mDNS;
+constexpr auto category = TraceCategory::mDNS;
constexpr uint32_t line = 10;
TEST(TraceLoggingInternalTest, CreatingNoTraceObjectValid) {
@@ -38,9 +35,8 @@ TEST(TraceLoggingInternalTest, TestMacroStyleInitializationTrue) {
MockLoggingPlatform platform;
EXPECT_CALL(platform, LogTrace(_, _, _, _, _, _, _))
.Times(1)
- .WillOnce(
- DoAll(Invoke(platform::ValidateTraceTimestampDiff<delay_in_ms>),
- Invoke(platform::ValidateTraceErrorCode<Error::Code::kNone>)));
+ .WillOnce(DoAll(Invoke(ValidateTraceTimestampDiff<delay_in_ms>),
+ Invoke(ValidateTraceErrorCode<Error::Code::kNone>)));
{
uint8_t temp[sizeof(SynchronousTraceLogger)];
@@ -81,7 +77,7 @@ TEST(TraceLoggingInternalTest, ExpectParametersPassedToResult) {
MockLoggingPlatform platform;
EXPECT_CALL(platform, LogTrace(testing::StrEq("Name"), line,
testing::StrEq(__FILE__), _, _, _, _))
- .WillOnce(Invoke(platform::ValidateTraceErrorCode<Error::Code::kNone>));
+ .WillOnce(Invoke(ValidateTraceErrorCode<Error::Code::kNone>));
{ SynchronousTraceLogger{category, "Name", __FILE__, line}; }
}