| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); | 50 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); |
| 51 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); | 51 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); |
| 52 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); | 52 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); |
| 53 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); | 53 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); |
| 54 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); | 54 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); |
| 55 } | 55 } |
| 56 | 56 |
| 57 TEST(WPDNodeTest, ExpectedErrorReturnValue) { | 57 TEST(WPDNodeTest, ExpectedErrorReturnValue) { |
| 58 WPDNode node(kDataLength, kCoefficients, kCoefficientsLength); | 58 WPDNode node(kDataLength, kCoefficients, kCoefficientsLength); |
| 59 EXPECT_EQ(-1, node.Update(kParentData, kParentDataLength - 1)); | 59 EXPECT_EQ(-1, node.Update(kParentData, kParentDataLength - 1)); |
| 60 EXPECT_EQ(-1, node.Update(NULL, kParentDataLength)); | 60 EXPECT_EQ(-1, node.Update(nullptr, kParentDataLength)); |
| 61 EXPECT_EQ(-1, node.set_data(kParentData, kDataLength - 1)); | 61 EXPECT_EQ(-1, node.set_data(kParentData, kDataLength - 1)); |
| 62 EXPECT_EQ(-1, node.set_data(NULL, kDataLength)); | 62 EXPECT_EQ(-1, node.set_data(nullptr, kDataLength)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace webrtc | 65 } // namespace webrtc |
| OLD | NEW |