1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/trace_event/trace_event.h" 6 7 #include "testing/gtest/include/gtest/gtest.h" 8 9 namespace base { 10 namespace trace_event { 11 TEST(TraceEventAndroidTest,WriteToATrace)12TEST(TraceEventAndroidTest, WriteToATrace) { 13 // Just a smoke test to ensure no crash. 14 TraceLog* trace_log = TraceLog::GetInstance(); 15 trace_log->StartATrace(); 16 TRACE_EVENT0("test", "test-event"); 17 trace_log->StopATrace(); 18 trace_log->AddClockSyncMetadataEvent(); 19 } 20 21 } // namespace trace_event 22 } // namespace base 23