OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |