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

Side by Side Diff: content/test/content_browser_test_test.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/content_browser_test.h" 5 #include "content/test/content_browser_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/public/test/browser_test_utils.h" 10 #include "content/public/test/browser_test_utils.h"
(...skipping 13 matching lines...) Expand all
24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
25 const testing::TestInfo* const test_info = 25 const testing::TestInfo* const test_info =
26 testing::UnitTest::GetInstance()->current_test_info(); 26 testing::UnitTest::GetInstance()->current_test_info();
27 if (std::string(test_info->name()) == "SingleProcess") 27 if (std::string(test_info->name()) == "SingleProcess")
28 command_line->AppendSwitch(switches::kSingleProcess); 28 command_line->AppendSwitch(switches::kSingleProcess);
29 } 29 }
30 30
31 void Test() { 31 void Test() {
32 GURL url = GetTestUrl(".", "simple_page.html"); 32 GURL url = GetTestUrl(".", "simple_page.html");
33 33
34 base::string16 expected_title(ASCIIToUTF16("OK")); 34 base::string16 expected_title(base::ASCIIToUTF16("OK"));
35 TitleWatcher title_watcher(shell()->web_contents(), expected_title); 35 TitleWatcher title_watcher(shell()->web_contents(), expected_title);
36 NavigateToURL(shell(), url); 36 NavigateToURL(shell(), url);
37 base::string16 title = title_watcher.WaitAndGetTitle(); 37 base::string16 title = title_watcher.WaitAndGetTitle();
38 EXPECT_EQ(expected_title, title); 38 EXPECT_EQ(expected_title, title);
39 } 39 }
40 }; 40 };
41 41
42 IN_PROC_BROWSER_TEST_F(ContentBrowserTestSanityTest, Basic) { 42 IN_PROC_BROWSER_TEST_F(ContentBrowserTestSanityTest, Basic) {
43 Test(); 43 Test();
44 } 44 }
45 45
46 IN_PROC_BROWSER_TEST_F(ContentBrowserTestSanityTest, SingleProcess) { 46 IN_PROC_BROWSER_TEST_F(ContentBrowserTestSanityTest, SingleProcess) {
47 Test(); 47 Test();
48 } 48 }
49 49
50 } // namespace content 50 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.cc ('k') | content/test/mock_google_streaming_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698