diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-25 18:18:01 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-25 18:18:01 +0000 |
commit | ad65a3ee540552ecca50ebbf9382f1a4c718d383 (patch) | |
tree | 68082d6d78331413eba2f799547026940c07e004 /device | |
parent | 750f4497a3b87a4a028d4d6ce3ce88e01314139c (diff) | |
download | chromium_src-ad65a3ee540552ecca50ebbf9382f1a4c718d383.zip chromium_src-ad65a3ee540552ecca50ebbf9382f1a4c718d383.tar.gz chromium_src-ad65a3ee540552ecca50ebbf9382f1a4c718d383.tar.bz2 |
Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media/, net/ to use the base:: namespace.
BUG=330556
TEST=no change
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/112963005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device')
-rw-r--r-- | device/bluetooth/bluetooth_chromeos_unittest.cc | 6 | ||||
-rw-r--r-- | device/bluetooth/bluetooth_device.cc | 4 | ||||
-rw-r--r-- | device/bluetooth/test/mock_bluetooth_device.cc | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/device/bluetooth/bluetooth_chromeos_unittest.cc b/device/bluetooth/bluetooth_chromeos_unittest.cc index dea1322..efc0b36 100644 --- a/device/bluetooth/bluetooth_chromeos_unittest.cc +++ b/device/bluetooth/bluetooth_chromeos_unittest.cc @@ -749,7 +749,7 @@ TEST_F(BluetoothChromeOSTest, DeviceProperties) { devices[0]->GetAddress()); // Verify the other device properties. - EXPECT_EQ(UTF8ToUTF16(FakeBluetoothDeviceClient::kPairedDeviceName), + EXPECT_EQ(base::UTF8ToUTF16(FakeBluetoothDeviceClient::kPairedDeviceName), devices[0]->GetName()); EXPECT_EQ(BluetoothDevice::DEVICE_COMPUTER, devices[0]->GetDeviceType()); EXPECT_TRUE(devices[0]->IsPaired()); @@ -805,7 +805,7 @@ TEST_F(BluetoothChromeOSTest, DeviceNameChanged) { ASSERT_EQ(1U, devices.size()); ASSERT_EQ(FakeBluetoothDeviceClient::kPairedDeviceAddress, devices[0]->GetAddress()); - ASSERT_EQ(UTF8ToUTF16(FakeBluetoothDeviceClient::kPairedDeviceName), + ASSERT_EQ(base::UTF8ToUTF16(FakeBluetoothDeviceClient::kPairedDeviceName), devices[0]->GetName()); // Install an observer; expect the DeviceChanged method to be called when @@ -823,7 +823,7 @@ TEST_F(BluetoothChromeOSTest, DeviceNameChanged) { EXPECT_EQ(1, observer.device_changed_count_); EXPECT_EQ(devices[0], observer.last_device_); - EXPECT_EQ(UTF8ToUTF16(new_name), devices[0]->GetName()); + EXPECT_EQ(base::UTF8ToUTF16(new_name), devices[0]->GetName()); } TEST_F(BluetoothChromeOSTest, DeviceUuidsChanged) { diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc index d9ba2134..7c100ec 100644 --- a/device/bluetooth/bluetooth_device.cc +++ b/device/bluetooth/bluetooth_device.cc @@ -27,14 +27,14 @@ BluetoothDevice::~BluetoothDevice() { base::string16 BluetoothDevice::GetName() const { std::string name = GetDeviceName(); if (!name.empty()) { - return UTF8ToUTF16(name); + return base::UTF8ToUTF16(name); } else { return GetAddressWithLocalizedDeviceTypeName(); } } base::string16 BluetoothDevice::GetAddressWithLocalizedDeviceTypeName() const { - base::string16 address_utf16 = UTF8ToUTF16(GetAddress()); + base::string16 address_utf16 = base::UTF8ToUTF16(GetAddress()); BluetoothDevice::DeviceType device_type = GetDeviceType(); switch (device_type) { case DEVICE_COMPUTER: diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc index b4c6cfe..c1fe56f 100644 --- a/device/bluetooth/test/mock_bluetooth_device.cc +++ b/device/bluetooth/test/mock_bluetooth_device.cc @@ -33,7 +33,7 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter, ON_CALL(*this, IsConnecting()) .WillByDefault(testing::Return(false)); ON_CALL(*this, GetName()) - .WillByDefault(testing::Return(UTF8ToUTF16(name_))); + .WillByDefault(testing::Return(base::UTF8ToUTF16(name_))); ON_CALL(*this, ExpectingPinCode()) .WillByDefault(testing::Return(false)); ON_CALL(*this, ExpectingPasskey()) |