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

Unified Diff: content/renderer/render_view_browsertest.cc

Issue 102993018: Remove UTF string conversion functions from the global namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aaaaaaaaaa Created 7 years 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
Index: content/renderer/render_view_browsertest.cc
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
index 136156198c63a7ecf58bd53398581c667a1e01c4..b404fa75a8cb209178b65eddbd7d5f06abb5fe15 100644
--- a/content/renderer/render_view_browsertest.cc
+++ b/content/renderer/render_view_browsertest.cc
@@ -69,7 +69,7 @@ using blink::WebString;
using blink::WebTextDirection;
using blink::WebURLError;
-namespace content {
+namespace content {
namespace {
@@ -1067,7 +1067,7 @@ TEST_F(RenderViewImplTest, ImeComposition) {
case IME_SETCOMPOSITION:
view()->OnImeSetComposition(
- WideToUTF16Hack(ime_message->ime_string),
+ base::WideToUTF16Hack(ime_message->ime_string),
std::vector<blink::WebCompositionUnderline>(),
ime_message->selection_start,
ime_message->selection_end);
@@ -1075,7 +1075,7 @@ TEST_F(RenderViewImplTest, ImeComposition) {
case IME_CONFIRMCOMPOSITION:
view()->OnImeConfirmComposition(
- WideToUTF16Hack(ime_message->ime_string),
+ base::WideToUTF16Hack(ime_message->ime_string),
gfx::Range::InvalidRange(),
false);
break;
@@ -1098,7 +1098,7 @@ TEST_F(RenderViewImplTest, ImeComposition) {
// Retrieve the content of this page and compare it with the expected
// result.
const int kMaxOutputCharacters = 128;
- std::wstring output = UTF16ToWideHack(
+ std::wstring output = base::UTF16ToWideHack(
GetMainFrame()->contentAsText(kMaxOutputCharacters));
EXPECT_EQ(output, ime_message->result);
}
@@ -1147,7 +1147,7 @@ TEST_F(RenderViewImplTest, OnSetTextDirection) {
// Copy the document content to std::wstring and compare with the
// expected result.
const int kMaxOutputCharacters = 16;
- std::wstring output = UTF16ToWideHack(
+ std::wstring output = base::UTF16ToWideHack(
GetMainFrame()->contentAsText(kMaxOutputCharacters));
EXPECT_EQ(output, kTextDirection[i].expected_result);
}
@@ -1527,7 +1527,7 @@ TEST_F(RenderViewImplTest, MAYBE_InsertCharacters) {
// text created from a virtual-key code, a character code, and the
// modifier-key status.
const int kMaxOutputCharacters = 4096;
- std::wstring output = UTF16ToWideHack(
+ std::wstring output = base::UTF16ToWideHack(
GetMainFrame()->contentAsText(kMaxOutputCharacters));
EXPECT_EQ(kLayouts[i].expected_result, output);
}
@@ -1995,7 +1995,7 @@ TEST_F(RenderViewImplTest, NavigateFrame) {
// Copy the document content to std::wstring and compare with the
// expected result.
const int kMaxOutputCharacters = 256;
- std::wstring output = UTF16ToWideHack(
+ std::wstring output = base::UTF16ToWideHack(
GetMainFrame()->contentAsText(kMaxOutputCharacters));
EXPECT_EQ(output, L"hello \n\nworld");
}
« no previous file with comments | « components/policy/core/common/policy_loader_win_unittest.cc ('k') | third_party/leveldatabase/env_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698