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

Side by Side Diff: media/base/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 unified diff | Download patch
« no previous file with comments | « media/base/audio_point.cc ('k') | media/base/audio_renderer_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cmath> 5 #include <cmath>
6 6
7 #include "media/audio/point.h" 7 #include "media/base/audio_point.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace media { 10 namespace media {
11 namespace { 11 namespace {
12 12
13 TEST(PointTest, PointsToString) { 13 TEST(PointTest, PointsToString) {
14 std::vector<Point> points(1, Point(1, 0, 0.01f)); 14 std::vector<Point> points(1, Point(1, 0, 0.01f));
15 points.push_back(Point(0, 2, 0.02f)); 15 points.push_back(Point(0, 2, 0.02f));
16 EXPECT_EQ("1.000000,0.000000,0.010000, 0.000000,2.000000,0.020000", 16 EXPECT_EQ("1.000000,0.000000,0.010000, 0.000000,2.000000,0.020000",
17 PointsToString(points)); 17 PointsToString(points));
(...skipping 14 matching lines...) Expand all
32 EXPECT_EQ(expected, ParsePointsFromString("-0.02 0 0 0.02 0 0")); 32 EXPECT_EQ(expected, ParsePointsFromString("-0.02 0 0 0.02 0 0"));
33 } 33 }
34 { 34 {
35 std::vector<Point> expected(1, Point(1, 2, 3)); 35 std::vector<Point> expected(1, Point(1, 2, 3));
36 EXPECT_EQ(expected, ParsePointsFromString("1 2 3")); 36 EXPECT_EQ(expected, ParsePointsFromString("1 2 3"));
37 } 37 }
38 } 38 }
39 39
40 } // namespace 40 } // namespace
41 } // namespace media 41 } // namespace media
OLDNEW
« no previous file with comments | « media/base/audio_point.cc ('k') | media/base/audio_renderer_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698