
Since we a) have a PRESUBMIT check for wstring in new code and b) this code isn't used any more.... might as well kill it. TBR=rsesek@chromium.org R=mark@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10818016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150002 0039d316-1c4b-4281-b951-d872f2087c98
19 lines
654 B
Plaintext
19 lines
654 B
Plaintext
// Copyright (c) 2012 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/string16.h"
|
|
#include "base/sys_string_conversions.h"
|
|
#include "testing/gtest/include/gtest/gtest.h"
|
|
|
|
TEST(SysStrings, ConversionsFromNSString) {
|
|
EXPECT_STREQ("Hello, world!",
|
|
base::SysNSStringToUTF8(@"Hello, world!").c_str());
|
|
|
|
// Conversions should be able to handle a NULL value without crashing.
|
|
EXPECT_STREQ("", base::SysNSStringToUTF8(nil).c_str());
|
|
EXPECT_EQ(string16(), base::SysNSStringToUTF16(nil));
|
|
}
|