| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 |
| 11 #include "webrtc/system_wrappers/interface/data_log.h" | 11 #include "webrtc/system_wrappers/include/data_log.h" |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 using ::webrtc::DataLog; | 17 using ::webrtc::DataLog; |
| 18 | 18 |
| 19 TEST(TestDataLog, IntContainers) { | 19 TEST(TestDataLog, IntContainers) { |
| 20 int c = 5; | 20 int c = 5; |
| 21 webrtc::ValueContainer<int> v1(c); | 21 webrtc::ValueContainer<int> v1(c); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 m1.ToString(&s1); | 56 m1.ToString(&s1); |
| 57 m2.ToString(&s2); | 57 m2.ToString(&s2); |
| 58 ASSERT_EQ(s1, "1,2,3,"); | 58 ASSERT_EQ(s1, "1,2,3,"); |
| 59 ASSERT_EQ(s2, "4,5,6,"); | 59 ASSERT_EQ(s2, "4,5,6,"); |
| 60 m1 = m2; | 60 m1 = m2; |
| 61 m1.ToString(&s1); | 61 m1.ToString(&s1); |
| 62 ASSERT_EQ(s1, s2); | 62 ASSERT_EQ(s1, s2); |
| 63 m3.ToString(&s3); | 63 m3.ToString(&s3); |
| 64 ASSERT_EQ(s3, "1,2,3,"); | 64 ASSERT_EQ(s3, "1,2,3,"); |
| 65 } | 65 } |
| OLD | NEW |