OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 #include "ui/base/text/bytes_formatting.h" | 7 #include "ui/base/text/bytes_formatting.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { | 71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { |
72 EXPECT_EQ(ASCIIToUTF16(cases[i].expected), | 72 EXPECT_EQ(ASCIIToUTF16(cases[i].expected), |
73 FormatBytesWithUnits(cases[i].bytes, cases[i].units, false)); | 73 FormatBytesWithUnits(cases[i].bytes, cases[i].units, false)); |
74 EXPECT_EQ(ASCIIToUTF16(cases[i].expected_with_units), | 74 EXPECT_EQ(ASCIIToUTF16(cases[i].expected_with_units), |
75 FormatBytesWithUnits(cases[i].bytes, cases[i].units, true)); | 75 FormatBytesWithUnits(cases[i].bytes, cases[i].units, true)); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 } // namespace ui | 79 } // namespace ui |
| 80 |
OLD | NEW |