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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 23503040: Remove all NetworkLibrary dependencies from AutomationTestingProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 &TestingAutomationProvider::AddLoginEventObserver; 1751 &TestingAutomationProvider::AddLoginEventObserver;
1752 handler_map_["SignOut"] = &TestingAutomationProvider::SignOut; 1752 handler_map_["SignOut"] = &TestingAutomationProvider::SignOut;
1753 1753
1754 handler_map_["LockScreen"] = &TestingAutomationProvider::LockScreen; 1754 handler_map_["LockScreen"] = &TestingAutomationProvider::LockScreen;
1755 handler_map_["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; 1755 handler_map_["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen;
1756 handler_map_["SignoutInScreenLocker"] = 1756 handler_map_["SignoutInScreenLocker"] =
1757 &TestingAutomationProvider::SignoutInScreenLocker; 1757 &TestingAutomationProvider::SignoutInScreenLocker;
1758 1758
1759 handler_map_["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo; 1759 handler_map_["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo;
1760 1760
1761 handler_map_["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo;
1762 handler_map_["NetworkScan"] = &TestingAutomationProvider::NetworkScan;
1763 handler_map_["ToggleNetworkDevice"] =
1764 &TestingAutomationProvider::ToggleNetworkDevice;
1765 handler_map_["ConnectToHiddenWifiNetwork"] =
1766 &TestingAutomationProvider::ConnectToHiddenWifiNetwork;
1767 handler_map_["ForgetWifiNetwork"] =
1768 &TestingAutomationProvider::ForgetWifiNetwork;
1769
1770 handler_map_["EnableSpokenFeedback"] = 1761 handler_map_["EnableSpokenFeedback"] =
1771 &TestingAutomationProvider::EnableSpokenFeedback; 1762 &TestingAutomationProvider::EnableSpokenFeedback;
1772 handler_map_["IsSpokenFeedbackEnabled"] = 1763 handler_map_["IsSpokenFeedbackEnabled"] =
1773 &TestingAutomationProvider::IsSpokenFeedbackEnabled; 1764 &TestingAutomationProvider::IsSpokenFeedbackEnabled;
1774 1765
1775 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo; 1766 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo;
1776 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone; 1767 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone;
1777 1768
1778 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; 1769 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck;
1779 1770
(...skipping 3774 matching lines...) Expand 10 before | Expand all | Expand 10 after
5554 if (g_browser_process) 5545 if (g_browser_process)
5555 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 5546 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
5556 } 5547 }
5557 5548
5558 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 5549 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
5559 WebContents* tab) { 5550 WebContents* tab) {
5560 TabStripModel* tab_strip = browser->tab_strip_model(); 5551 TabStripModel* tab_strip = browser->tab_strip_model();
5561 if (tab_strip->GetActiveWebContents() != tab) 5552 if (tab_strip->GetActiveWebContents() != tab)
5562 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); 5553 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true);
5563 } 5554 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698