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

Side by Side Diff: content/browser/media/webrtc_aecdump_browsertest.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
« no previous file with comments | « content/browser/media/media_browsertest.cc ('k') | content/browser/media/webrtc_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/platform_file.h" 7 #include "base/platform_file.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 command_line->AppendSwitchPath(switches::kEnableWebRtcAecRecordings, 46 command_line->AppendSwitchPath(switches::kEnableWebRtcAecRecordings,
47 dump_file_); 47 dump_file_);
48 } 48 }
49 49
50 protected: 50 protected:
51 bool ExecuteJavascript(const std::string& javascript) { 51 bool ExecuteJavascript(const std::string& javascript) {
52 return ExecuteScript(shell()->web_contents(), javascript); 52 return ExecuteScript(shell()->web_contents(), javascript);
53 } 53 }
54 54
55 void ExpectTitle(const std::string& expected_title) const { 55 void ExpectTitle(const std::string& expected_title) const {
56 base::string16 expected_title16(ASCIIToUTF16(expected_title)); 56 base::string16 expected_title16(base::ASCIIToUTF16(expected_title));
57 TitleWatcher title_watcher(shell()->web_contents(), expected_title16); 57 TitleWatcher title_watcher(shell()->web_contents(), expected_title16);
58 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); 58 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle());
59 } 59 }
60 60
61 base::ScopedTempDir temp_dir_; 61 base::ScopedTempDir temp_dir_;
62 base::FilePath dump_file_; 62 base::FilePath dump_file_;
63 63
64 private: 64 private:
65 DISALLOW_COPY_AND_ASSIGN(WebrtcAecDumpBrowserTest); 65 DISALLOW_COPY_AND_ASSIGN(WebrtcAecDumpBrowserTest);
66 }; 66 };
(...skipping 17 matching lines...) Expand all
84 EXPECT_TRUE(ExecuteJavascript("call({video: true, audio: true});")); 84 EXPECT_TRUE(ExecuteJavascript("call({video: true, audio: true});"));
85 ExpectTitle("OK"); 85 ExpectTitle("OK");
86 86
87 EXPECT_TRUE(base::PathExists(dump_file_)); 87 EXPECT_TRUE(base::PathExists(dump_file_));
88 int64 file_size = 0; 88 int64 file_size = 0;
89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size)); 89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size));
90 EXPECT_GT(file_size, 0); 90 EXPECT_GT(file_size, 0);
91 } 91 }
92 92
93 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/media_browsertest.cc ('k') | content/browser/media/webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698