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

Side by Side Diff: chrome/test/pyautolib/pyautolib.cc

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « chrome/test/perf/url_fetch_test.cc ('k') | chrome/test/reliability/automated_ui_tests.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/json/json_writer.h" 6 #include "base/json/json_writer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 void PyUITestSuiteBase::SetCrSourceRoot(const base::FilePath& path) { 39 void PyUITestSuiteBase::SetCrSourceRoot(const base::FilePath& path) {
40 PathService::Override(base::DIR_SOURCE_ROOT, path); 40 PathService::Override(base::DIR_SOURCE_ROOT, path);
41 } 41 }
42 42
43 // PyUITestBase 43 // PyUITestBase
44 PyUITestBase::PyUITestBase(bool clear_profile, std::wstring homepage) 44 PyUITestBase::PyUITestBase(bool clear_profile, std::wstring homepage)
45 : UITestBase() { 45 : UITestBase() {
46 set_clear_profile(clear_profile); 46 set_clear_profile(clear_profile);
47 set_homepage(WideToASCII(homepage)); 47 set_homepage(base::WideToASCII(homepage));
48 // We add this so that pyauto can execute javascript in the renderer and 48 // We add this so that pyauto can execute javascript in the renderer and
49 // read values back. 49 // read values back.
50 dom_automation_enabled_ = true; 50 dom_automation_enabled_ = true;
51 message_loop_ = GetSharedMessageLoop(MessageLoop::TYPE_DEFAULT); 51 message_loop_ = GetSharedMessageLoop(MessageLoop::TYPE_DEFAULT);
52 } 52 }
53 53
54 PyUITestBase::~PyUITestBase() { 54 PyUITestBase::~PyUITestBase() {
55 } 55 }
56 56
57 // static, refer .h for why it needs to be static 57 // static, refer .h for why it needs to be static
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 StringPrintf("Chrome automation timed out after %d seconds", 154 StringPrintf("Chrome automation timed out after %d seconds",
155 static_cast<int>(duration.InSeconds())), 155 static_cast<int>(duration.InSeconds())),
156 request, true, response); 156 request, true, response);
157 } else { 157 } else {
158 // TODO(craigdh): Determine specific cause. 158 // TODO(craigdh): Determine specific cause.
159 ErrorResponse( 159 ErrorResponse(
160 "Chrome automation failed prior to timing out, did chrome crash?", 160 "Chrome automation failed prior to timing out, did chrome crash?",
161 request, false, response); 161 request, false, response);
162 } 162 }
163 } 163 }
OLDNEW
« no previous file with comments | « chrome/test/perf/url_fetch_test.cc ('k') | chrome/test/reliability/automated_ui_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698