diff options
author | xunchang <xunchang@google.com> | 2019-02-05 12:44:53 -0800 |
---|---|---|
committer | xunchang <xunchang@google.com> | 2019-02-05 12:44:53 -0800 |
commit | 7b08a5a6eb536f474d19b29af37aa185cf046410 (patch) | |
tree | 32f1b845122d8228af0d7388cceb27998a5a8cc9 /tests/component/install_test.cpp | |
parent | 990807a95f367b15b2c318393b1d0f1cc75ccc34 (diff) | |
download | android_bootable_recovery-7b08a5a6eb536f474d19b29af37aa185cf046410.tar.gz android_bootable_recovery-7b08a5a6eb536f474d19b29af37aa185cf046410.tar.bz2 android_bootable_recovery-7b08a5a6eb536f474d19b29af37aa185cf046410.zip |
Recovery test: Fix an parameter issue in string construction
The intended string constructor is supposed be
basic_string(size_type count, CharT ch). But the parameter is
accidentally reversed when calling the constructor in install_test.
Test: A failed unit test pass
Change-Id: Id9765bfa7d2368ff0d7fbeea45c9c8357864e060
Diffstat (limited to 'tests/component/install_test.cpp')
-rw-r--r-- | tests/component/install_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/component/install_test.cpp b/tests/component/install_test.cpp index 27a01cb3..47a54714 100644 --- a/tests/component/install_test.cpp +++ b/tests/component/install_test.cpp @@ -439,8 +439,8 @@ TEST(InstallTest, CheckPackageMetadata_multiple_serial_number) { std::vector<std::string> serial_numbers; // Creates a dummy serial number string. - for (size_t c = 'a'; c <= 'z'; c++) { - serial_numbers.emplace_back(c, serialno.size()); + for (char c = 'a'; c <= 'z'; c++) { + serial_numbers.emplace_back(serialno.size(), c); } // No matched serialno found. |