OLD | NEW |
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 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 IPC::Message* reply_message); | 1412 IPC::Message* reply_message); |
1413 | 1413 |
1414 // Triggers a policy update on the platform and cloud providers, if they | 1414 // Triggers a policy update on the platform and cloud providers, if they |
1415 // exist. Returns after the update notifications are received. | 1415 // exist. Returns after the update notifications are received. |
1416 // Example: | 1416 // Example: |
1417 // input: none | 1417 // input: none |
1418 // output: none | 1418 // output: none |
1419 void RefreshPolicies(base::DictionaryValue* args, | 1419 void RefreshPolicies(base::DictionaryValue* args, |
1420 IPC::Message* reply_message); | 1420 IPC::Message* reply_message); |
1421 | 1421 |
| 1422 // Simulates a memory bug (reference an array out of bounds) to cause Address |
| 1423 // Sanitizer (if it was built it) to catch the bug and abort the process. |
| 1424 // Example: |
| 1425 // input: none |
| 1426 // output: none |
| 1427 void SimulateAsanMemoryBug(base::DictionaryValue* args, |
| 1428 IPC::Message* reply_message); |
| 1429 |
1422 #if defined(OS_CHROMEOS) | 1430 #if defined(OS_CHROMEOS) |
1423 // Login / Logout. | 1431 // Login / Logout. |
1424 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); | 1432 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); |
1425 | 1433 |
1426 void ShowCreateAccountUI(base::DictionaryValue* args, | 1434 void ShowCreateAccountUI(base::DictionaryValue* args, |
1427 IPC::Message* reply_message); | 1435 IPC::Message* reply_message); |
1428 | 1436 |
1429 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); | 1437 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); |
1430 | 1438 |
1431 void AddLoginEventObserver(DictionaryValue* args, | 1439 void AddLoginEventObserver(DictionaryValue* args, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message); | 1546 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message); |
1539 | 1547 |
1540 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message); | 1548 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message); |
1541 | 1549 |
1542 void CaptureProfilePhoto(Browser* browser, | 1550 void CaptureProfilePhoto(Browser* browser, |
1543 DictionaryValue* args, | 1551 DictionaryValue* args, |
1544 IPC::Message* reply_message); | 1552 IPC::Message* reply_message); |
1545 | 1553 |
1546 void AddChromeosObservers(); | 1554 void AddChromeosObservers(); |
1547 void RemoveChromeosObservers(); | 1555 void RemoveChromeosObservers(); |
| 1556 |
1548 #endif // defined(OS_CHROMEOS) | 1557 #endif // defined(OS_CHROMEOS) |
1549 | 1558 |
1550 void WaitForTabCountToBecome(int browser_handle, | 1559 void WaitForTabCountToBecome(int browser_handle, |
1551 int target_tab_count, | 1560 int target_tab_count, |
1552 IPC::Message* reply_message); | 1561 IPC::Message* reply_message); |
1553 | 1562 |
1554 void WaitForInfoBarCount(int tab_handle, | 1563 void WaitForInfoBarCount(int tab_handle, |
1555 size_t target_count, | 1564 size_t target_count, |
1556 IPC::Message* reply_message); | 1565 IPC::Message* reply_message); |
1557 | 1566 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 ImportSettingsData import_settings_data_; | 1609 ImportSettingsData import_settings_data_; |
1601 | 1610 |
1602 // The automation event observer queue. It is lazily created when an observer | 1611 // The automation event observer queue. It is lazily created when an observer |
1603 // is added to avoid overhead when not needed. | 1612 // is added to avoid overhead when not needed. |
1604 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1613 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1605 | 1614 |
1606 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1615 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1607 }; | 1616 }; |
1608 | 1617 |
1609 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1618 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |