Chromium Code Reviews| 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_TEST_CHROMEDRIVER_SESSION_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 ScopedVector<WebDriverLog> devtools_logs; | 79 ScopedVector<WebDriverLog> devtools_logs; |
| 80 std::unique_ptr<WebDriverLog> driver_log; | 80 std::unique_ptr<WebDriverLog> driver_log; |
| 81 base::ScopedTempDir temp_dir; | 81 base::ScopedTempDir temp_dir; |
| 82 std::unique_ptr<base::DictionaryValue> capabilities; | 82 std::unique_ptr<base::DictionaryValue> capabilities; |
| 83 bool auto_reporting_enabled; | 83 bool auto_reporting_enabled; |
| 84 // |command_listeners| should be declared after |chrome|. When the |Session| | 84 // |command_listeners| should be declared after |chrome|. When the |Session| |
| 85 // is destroyed, |command_listeners| should be freed first, since some | 85 // is destroyed, |command_listeners| should be freed first, since some |
| 86 // |CommandListener|s might be |CommandListenerProxy|s that forward to | 86 // |CommandListener|s might be |CommandListenerProxy|s that forward to |
| 87 // |DevToolsEventListener|s owned by |chrome|. | 87 // |DevToolsEventListener|s owned by |chrome|. |
| 88 ScopedVector<CommandListener> command_listeners; | 88 ScopedVector<CommandListener> command_listeners; |
| 89 std::string unexpected_alert_behaviour; | |
| 90 static const char kAccept[]; | |
|
gmanikpure
2016/11/04 00:23:24
As discussed, adding values of unexpectedalertbeha
samuong
2016/11/22 19:52:16
these don't need to be inside the Session class, y
gmanikpure
2016/11/23 18:34:26
Done.
| |
| 91 static const char kDismiss[]; | |
| 92 static const char kIgnore[]; | |
| 93 std::string GetUnexpectedAlertBehaviour() const; | |
|
samuong
2016/11/22 19:52:16
this is a method, so group it with the other metho
gmanikpure
2016/11/23 18:34:26
Done.
| |
| 89 }; | 94 }; |
| 90 | 95 |
| 91 Session* GetThreadLocalSession(); | 96 Session* GetThreadLocalSession(); |
| 92 | 97 |
| 93 void SetThreadLocalSession(std::unique_ptr<Session> session); | 98 void SetThreadLocalSession(std::unique_ptr<Session> session); |
| 94 | 99 |
| 95 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_ | 100 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_ |
| OLD | NEW |