Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: ui/base/l10n/l10n_util_mac_unittest.mm

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/l10n/l10n_util_mac.mm ('k') | ui/base/l10n/l10n_util_plurals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_mac_unittest.mm
diff --git a/ui/base/l10n/l10n_util_mac_unittest.mm b/ui/base/l10n/l10n_util_mac_unittest.mm
deleted file mode 100644
index adb0c57a7ab7daa9cba5570ee021d89fc7a39c6f..0000000000000000000000000000000000000000
--- a/ui/base/l10n/l10n_util_mac_unittest.mm
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import <Foundation/Foundation.h>
-
-#include "base/strings/sys_string_conversions.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/platform_test.h"
-#include "ui/base/l10n/l10n_util_mac.h"
-
-typedef PlatformTest L10nUtilMacTest;
-
-TEST_F(L10nUtilMacTest, FixUpWindowsStyleLabel) {
- struct TestData {
- NSString* input;
- NSString* output;
- };
-
- TestData data[] = {
- { @"", @"" },
- { @"nothing", @"nothing" },
- { @"foo &bar", @"foo bar" },
- { @"foo &&bar", @"foo &bar" },
- { @"foo &&&bar", @"foo &bar" },
- { @"&foo &&bar", @"foo &bar" },
- { @"&foo &bar", @"foo bar" },
- { @"foo bar.", @"foo bar." },
- { @"foo bar..", @"foo bar.." },
- { @"foo bar...", @"foo bar\u2026" },
- { @"foo.bar", @"foo.bar" },
- { @"foo..bar", @"foo..bar" },
- { @"foo...bar", @"foo\u2026bar" },
- { @"foo...bar...", @"foo\u2026bar\u2026" },
- { @"foo(&b)", @"foo" },
- { @"foo(&b)...", @"foo\u2026" },
- { @"(&b)foo", @"foo" },
- };
- for (size_t idx = 0; idx < arraysize(data); ++idx) {
- base::string16 input16(base::SysNSStringToUTF16(data[idx].input));
-
- NSString* result = l10n_util::FixUpWindowsStyleLabel(input16);
- EXPECT_TRUE(result != nil) << "Fixup Failed, idx = " << idx;
-
- EXPECT_TRUE([data[idx].output isEqual:result])
- << "For idx " << idx << ", expected '" << [data[idx].output UTF8String]
- << "', got '" << [result UTF8String] << "'";
- }
-}
« no previous file with comments | « ui/base/l10n/l10n_util_mac.mm ('k') | ui/base/l10n/l10n_util_plurals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698