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

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

Issue 2827048: PyAuto: Automation hooks to get/set theme (Closed)
Patch Set: use existing ResetToDefaultTheme Created 10 years, 5 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
« no previous file with comments | « chrome/test/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/test/automation/extension_proxy.h" 8 #include "chrome/test/automation/extension_proxy.h"
9 #include "chrome/test/automation/tab_proxy.h" 9 #include "chrome/test/automation/tab_proxy.h"
10 #include "chrome/test/pyautolib/pyautolib.h" 10 #include "chrome/test/pyautolib/pyautolib.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 std::string& request) { 287 std::string& request) {
288 scoped_refptr<BrowserProxy> browser_proxy = 288 scoped_refptr<BrowserProxy> browser_proxy =
289 automation()->GetBrowserWindow(window_index); 289 automation()->GetBrowserWindow(window_index);
290 EXPECT_TRUE(browser_proxy.get()); 290 EXPECT_TRUE(browser_proxy.get());
291 std::string response; 291 std::string response;
292 if (browser_proxy.get()) { 292 if (browser_proxy.get()) {
293 EXPECT_TRUE(browser_proxy->SendJSONRequest(request, &response)); 293 EXPECT_TRUE(browser_proxy->SendJSONRequest(request, &response));
294 } 294 }
295 return response; 295 return response;
296 } 296 }
297
298 bool PyUITestBase::ResetToDefaultTheme() {
299 return automation()->ResetToDefaultTheme();
300 }
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698