#include <string>
-#include "gtest/gtest.h"
+#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/typedefs.h"
namespace webrtc {
AudioVector vec;
AudioVector vec_copy;
vec.PushBack(array_, array_length());
- vec.CopyFrom(&vec_copy); // Copy from |vec| to |vec_copy|.
+ vec.CopyTo(&vec_copy); // Copy from |vec| to |vec_copy|.
ASSERT_EQ(array_length(), vec.Size());
ASSERT_EQ(array_length(), vec_copy.Size());
for (size_t i = 0; i < array_length(); ++i) {
EXPECT_TRUE(vec.Empty());
// Now copy the empty vector and verify that the copy becomes empty too.
- vec.CopyFrom(&vec_copy);
+ vec.CopyTo(&vec_copy);
EXPECT_TRUE(vec_copy.Empty());
}
AudioVector vec;
AudioVector* vec_copy = NULL;
vec.PushBack(array_, array_length());
- vec.CopyFrom(vec_copy);
+ vec.CopyTo(vec_copy);
}
// Test the PushBack method with another AudioVector as input argument.