audio_point_unittest.cc 565 B

123456789101112131415161718192021
  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. #include <cmath>
  5. #include "media/base/audio_point.h"
  6. #include "testing/gtest/include/gtest/gtest.h"
  7. namespace media {
  8. namespace {
  9. TEST(PointTest, PointsToString) {
  10. std::vector<Point> points = {Point(1, 0, 0.01f), Point(0, 2, 0.02f)};
  11. EXPECT_EQ("1,0,0.01, 0,2,0.02", PointsToString(points));
  12. EXPECT_EQ("", PointsToString(std::vector<Point>()));
  13. }
  14. } // namespace
  15. } // namespace media