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

Unified Diff: chrome/browser/sync/util/character_set_converters_unittest.cc

Issue 429003: Final part of PathString cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/sync/util/character_set_converters.cc ('k') | chrome/browser/sync/util/query_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/character_set_converters_unittest.cc
===================================================================
--- chrome/browser/sync/util/character_set_converters_unittest.cc (revision 32749)
+++ chrome/browser/sync/util/character_set_converters_unittest.cc (working copy)
@@ -1,32 +0,0 @@
-// Copyright (c) 2009 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.
-
-#include "chrome/browser/sync/util/character_set_converters.h"
-
-#include <string>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-using std::string;
-
-class CharacterSetConverterTest : public testing::Test {
-};
-
-TEST(NameTruncation, WindowsNameTruncation) {
- using browser_sync::TrimPathStringToValidCharacter;
- char array[] = {'1', '2', '\xc0', '\xe0', '3', '4', '\0'};
- std::string message(array);
- ASSERT_EQ(message.length(), arraysize(array) - 1);
- string::size_type old_length = message.length();
- while (old_length != 0) {
- TrimPathStringToValidCharacter(&message);
- if (old_length == 4)
- EXPECT_EQ(3u, message.length());
- else
- EXPECT_EQ(old_length, message.length());
- message.resize(message.length() - 1);
- old_length = message.length();
- }
- TrimPathStringToValidCharacter(&message);
-}
« no previous file with comments | « chrome/browser/sync/util/character_set_converters.cc ('k') | chrome/browser/sync/util/query_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698