// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/protocol/webrtc_event_log_data.h" #include "testing/gtest/include/gtest/gtest.h" namespace remoting::protocol { namespace { // Converts a log section to a std::string for convenient testing. std::string ToString(const WebrtcEventLogData::LogSection& section) { … } } // namespace TEST(WebrtcEventLogDataTest, WriteSingleEntry_IsStored) { … } TEST(WebrtcEventLogDataTest, WriteBeyondSection_OverflowsToNewSection) { … } TEST(WebrtcEventLogDataTest, WriteTooMuchData_OldestSectionDeleted) { … } TEST(WebrtcEventLogDataTest, StoreThenClear_IsEmpty) { … } } // namespace remoting::protocol