Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Unified Diff: media/audio/point_unittest.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/point.cc ('k') | media/audio/pulse/audio_manager_pulse.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/point_unittest.cc
diff --git a/media/audio/point_unittest.cc b/media/audio/point_unittest.cc
deleted file mode 100644
index 98aec64930697f3e95b7faf94d06fdeff7749859..0000000000000000000000000000000000000000
--- a/media/audio/point_unittest.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <cmath>
-
-#include "media/audio/point.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace media {
-namespace {
-
-TEST(PointTest, PointsToString) {
- std::vector<Point> points(1, Point(1, 0, 0.01f));
- points.push_back(Point(0, 2, 0.02f));
- EXPECT_EQ("1.000000,0.000000,0.010000, 0.000000,2.000000,0.020000",
- PointsToString(points));
-
- EXPECT_EQ("", PointsToString(std::vector<Point>()));
-}
-
-TEST(PointTest, ParsePointString) {
- const std::vector<Point> expected_empty;
- EXPECT_EQ(expected_empty, ParsePointsFromString(""));
- EXPECT_EQ(expected_empty, ParsePointsFromString("0 0 a"));
- EXPECT_EQ(expected_empty, ParsePointsFromString("1 2"));
- EXPECT_EQ(expected_empty, ParsePointsFromString("1 2 3 4"));
-
- {
- std::vector<Point> expected(1, Point(-0.02f, 0, 0));
- expected.push_back(Point(0.02f, 0, 0));
- EXPECT_EQ(expected, ParsePointsFromString("-0.02 0 0 0.02 0 0"));
- }
- {
- std::vector<Point> expected(1, Point(1, 2, 3));
- EXPECT_EQ(expected, ParsePointsFromString("1 2 3"));
- }
-}
-
-} // namespace
-} // namespace media
« no previous file with comments | « media/audio/point.cc ('k') | media/audio/pulse/audio_manager_pulse.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698