/* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ // This implementation is borrowed from Chromium. #include "rtc_base/containers/flat_set.h" #include <algorithm> #include <string> #include <utility> #include <vector> #include "rtc_base/containers/move_only_int.h" #include "test/gmock.h" #include "test/gtest.h" // A flat_set is basically a interface to flat_tree. So several basic // operations are tested to make sure things are set up properly, but the bulk // of the tests are in flat_tree_unittests.cc. ElementsAre; namespace webrtc { namespace { TEST(FlatSet, IncompleteType) { … } TEST(FlatSet, RangeConstructor) { … } TEST(FlatSet, MoveConstructor) { … } TEST(FlatSet, InitializerListConstructor) { … } TEST(FlatSet, InsertFindSize) { … } TEST(FlatSet, CopySwap) { … } TEST(FlatSet, UsingTransparentCompare) { … } TEST(FlatSet, SupportsEraseIf) { … } } // namespace } // namespace webrtc