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

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

Issue 10383174: Convert the CollectedCookies interactive_ui_tests to a browser_test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/tab_proxy.h ('k') | no next file » | 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 "chrome/test/automation/tab_proxy.h" 5 #include "chrome/test/automation/tab_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 &response_value)); 371 &response_value));
372 } 372 }
373 373
374 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) { 374 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) {
375 bool succeeded; 375 bool succeeded;
376 sender_->Send(new AutomationMsg_DeleteCookie(url, name, handle_, 376 sender_->Send(new AutomationMsg_DeleteCookie(url, name, handle_,
377 &succeeded)); 377 &succeeded));
378 return succeeded; 378 return succeeded;
379 } 379 }
380 380
381 bool TabProxy::ShowCollectedCookiesDialog() {
382 bool succeeded = false;
383 return sender_->Send(new AutomationMsg_ShowCollectedCookiesDialog(
384 handle_, &succeeded)) && succeeded;
385 }
386
387 int TabProxy::InspectElement(int x, int y) { 381 int TabProxy::InspectElement(int x, int y) {
388 if (!is_valid()) 382 if (!is_valid())
389 return -1; 383 return -1;
390 384
391 int ret = -1; 385 int ret = -1;
392 sender_->Send(new AutomationMsg_InspectElement(handle_, x, y, &ret)); 386 sender_->Send(new AutomationMsg_InspectElement(handle_, x, y, &ret));
393 return ret; 387 return ret;
394 } 388 }
395 389
396 bool TabProxy::GetDownloadDirectory(FilePath* directory) { 390 bool TabProxy::GetDownloadDirectory(FilePath* directory) {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 json)); 744 json));
751 } 745 }
752 746
753 void TabProxy::FirstObjectAdded() { 747 void TabProxy::FirstObjectAdded() {
754 AddRef(); 748 AddRef();
755 } 749 }
756 750
757 void TabProxy::LastObjectRemoved() { 751 void TabProxy::LastObjectRemoved() {
758 Release(); 752 Release();
759 } 753 }
OLDNEW
« no previous file with comments | « chrome/test/automation/tab_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698