OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/locale_change_guard.h" | 5 #include "chrome/browser/chromeos/locale_change_guard.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // These languages require user notification when locale is automatically | 16 // These languages require user notification when locale is automatically |
16 // switched between different regions within the same language. | 17 // switched between different regions within the same language. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 EXPECT_TRUE(notification_allowed ^ notification_skipped) | 213 EXPECT_TRUE(notification_allowed ^ notification_skipped) |
213 << "Language '" << language << "' (from locale '" << locale | 214 << "Language '" << language << "' (from locale '" << locale |
214 << "') must be in exactly one list: either " | 215 << "') must be in exactly one list: either " |
215 "kSkipShowNotificationLanguages (found=" << notification_skipped | 216 "kSkipShowNotificationLanguages (found=" << notification_skipped |
216 << ") or kShowNotificationLanguages (found=" << notification_allowed | 217 << ") or kShowNotificationLanguages (found=" << notification_allowed |
217 << ")."; | 218 << ")."; |
218 } | 219 } |
219 } | 220 } |
220 | 221 |
221 } // namespace chromeos | 222 } // namespace chromeos |
OLD | NEW |