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

Unified Diff: content/browser/accessibility/browser_accessibility_win_unittest.cc

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/browser/accessibility/browser_accessibility_win_unittest.cc
diff --git a/content/browser/accessibility/browser_accessibility_win_unittest.cc b/content/browser/accessibility/browser_accessibility_win_unittest.cc
index edb572f014c47adf08c485a80c7d4b59d5b3e2f1..c1159e6eb6ffe8791731260f1ee96ccccbdfcf2e 100644
--- a/content/browser/accessibility/browser_accessibility_win_unittest.cc
+++ b/content/browser/accessibility/browser_accessibility_win_unittest.cc
@@ -219,7 +219,7 @@ TEST_F(BrowserAccessibilityTest, TestChildrenChange) {
base::win::ScopedBstr name;
hr = text_accessible->get_accName(childid_self, name.Receive());
ASSERT_EQ(S_OK, hr);
- EXPECT_EQ(L"old text", string16(name));
+ EXPECT_EQ(L"old text", base::string16(name));
name.Reset();
text_dispatch.Release();
@@ -250,7 +250,7 @@ TEST_F(BrowserAccessibilityTest, TestChildrenChange) {
hr = text_accessible->get_accName(childid_self, name.Receive());
ASSERT_EQ(S_OK, hr);
- EXPECT_EQ(L"new text", string16(name));
+ EXPECT_EQ(L"new text", base::string16(name));
text_dispatch.Release();
text_accessible.Release();
@@ -354,7 +354,7 @@ TEST_F(BrowserAccessibilityTest, TestTextBoundaries) {
base::win::ScopedBstr text;
ASSERT_EQ(S_OK, text1_obj->get_text(0, text1_len, text.Receive()));
- ASSERT_EQ(text1_value, base::UTF16ToUTF8(string16(text)));
+ ASSERT_EQ(text1_value, base::UTF16ToUTF8(base::string16(text)));
text.Reset();
ASSERT_EQ(S_OK, text1_obj->get_text(0, 4, text.Receive()));
@@ -452,7 +452,7 @@ TEST_F(BrowserAccessibilityTest, TestSimpleHypertext) {
base::win::ScopedBstr text;
ASSERT_EQ(S_OK, root_obj->get_text(0, text_len, text.Receive()));
- EXPECT_EQ(text1_name + text2_name, base::UTF16ToUTF8(string16(text)));
+ EXPECT_EQ(text1_name + text2_name, base::UTF16ToUTF8(base::string16(text)));
long hyperlink_count;
ASSERT_EQ(S_OK, root_obj->get_nHyperlinks(&hyperlink_count));
@@ -548,7 +548,7 @@ TEST_F(BrowserAccessibilityTest, TestComplexHypertext) {
const std::string embed = base::UTF16ToUTF8(
BrowserAccessibilityWin::kEmbeddedCharacter);
EXPECT_EQ(text1_name + embed + text2_name + embed,
- UTF16ToUTF8(string16(text)));
+ UTF16ToUTF8(base::string16(text)));
text.Reset();
long hyperlink_count;
@@ -566,7 +566,7 @@ TEST_F(BrowserAccessibilityTest, TestComplexHypertext) {
hyperlink.QueryInterface<IAccessibleText>(hypertext.Receive()));
EXPECT_EQ(S_OK, hypertext->get_text(0, 3, text.Receive()));
EXPECT_STREQ(button1_text_name.c_str(),
- base::UTF16ToUTF8(string16(text)).c_str());
+ base::UTF16ToUTF8(base::string16(text)).c_str());
text.Reset();
hyperlink.Release();
hypertext.Release();
@@ -576,7 +576,7 @@ TEST_F(BrowserAccessibilityTest, TestComplexHypertext) {
hyperlink.QueryInterface<IAccessibleText>(hypertext.Receive()));
EXPECT_EQ(S_OK, hypertext->get_text(0, 4, text.Receive()));
EXPECT_STREQ(link1_text_name.c_str(),
- base::UTF16ToUTF8(string16(text)).c_str());
+ base::UTF16ToUTF8(base::string16(text)).c_str());
text.Reset();
hyperlink.Release();
hypertext.Release();

Powered by Google App Engine
This is Rietveld 408576698