OLD | NEW |
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 "chrome/test/automation/automation_proxy.h" | 5 #include "chrome/test/automation/automation_proxy.h" |
6 | 6 |
7 #include <gtest/gtest.h> | 7 #include <gtest/gtest.h> |
8 | 8 |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool result; | 248 bool result; |
249 std::string message; | 249 std::string message; |
250 if (!Send(new AutomationMsg_WaitForExtensionTestResult(&result, | 250 if (!Send(new AutomationMsg_WaitForExtensionTestResult(&result, |
251 &message))) { | 251 &message))) { |
252 FAIL() << "Could not send WaitForExtensionTestResult message"; | 252 FAIL() << "Could not send WaitForExtensionTestResult message"; |
253 return; | 253 return; |
254 } | 254 } |
255 ASSERT_TRUE(result) << "Extension test message: " << message; | 255 ASSERT_TRUE(result) << "Extension test message: " << message; |
256 } | 256 } |
257 | 257 |
258 bool AutomationProxy::GetEnabledExtensions( | |
259 std::vector<FilePath>* extension_directories) { | |
260 return Send(new AutomationMsg_GetEnabledExtensions(extension_directories)); | |
261 } | |
262 | |
263 bool AutomationProxy::GetBrowserWindowCount(int* num_windows) { | 258 bool AutomationProxy::GetBrowserWindowCount(int* num_windows) { |
264 if (!num_windows) { | 259 if (!num_windows) { |
265 NOTREACHED(); | 260 NOTREACHED(); |
266 return false; | 261 return false; |
267 } | 262 } |
268 | 263 |
269 return Send(new AutomationMsg_BrowserWindowCount(num_windows)); | 264 return Send(new AutomationMsg_BrowserWindowCount(num_windows)); |
270 } | 265 } |
271 | 266 |
272 bool AutomationProxy::GetNormalBrowserWindowCount(int* num_windows) { | 267 bool AutomationProxy::GetNormalBrowserWindowCount(int* num_windows) { |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 return Send(new AutomationMsg_ResetToDefaultTheme()); | 548 return Send(new AutomationMsg_ResetToDefaultTheme()); |
554 } | 549 } |
555 | 550 |
556 bool AutomationProxy::SendJSONRequest(const std::string& request, | 551 bool AutomationProxy::SendJSONRequest(const std::string& request, |
557 std::string* response) { | 552 std::string* response) { |
558 bool result = false; | 553 bool result = false; |
559 if (!SendAutomationJSONRequest(this, request, response, &result)) | 554 if (!SendAutomationJSONRequest(this, request, response, &result)) |
560 return false; | 555 return false; |
561 return result; | 556 return result; |
562 } | 557 } |
OLD | NEW |