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

Side by Side Diff: chrome/test/automation/automation_proxy.cc

Issue 6756044: Remove extension automation support that was used only by CEEE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years, 8 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/automation/automation_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698