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

Side by Side Diff: chrome/test/chromedriver/session.h

Issue 1827003004: [Chromedriver] Chromedriver should handle unexpected alert automatically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove getter, use variable directly. Created 4 years 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
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 #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>
11 11
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/test/chromedriver/basic_types.h" 15 #include "chrome/test/chromedriver/basic_types.h"
16 #include "chrome/test/chromedriver/chrome/device_metrics.h" 16 #include "chrome/test/chromedriver/chrome/device_metrics.h"
17 #include "chrome/test/chromedriver/chrome/geoposition.h" 17 #include "chrome/test/chromedriver/chrome/geoposition.h"
18 #include "chrome/test/chromedriver/chrome/network_conditions.h" 18 #include "chrome/test/chromedriver/chrome/network_conditions.h"
19 #include "chrome/test/chromedriver/command_listener.h" 19 #include "chrome/test/chromedriver/command_listener.h"
20 20
21 static const char kAccept[] = "accept";
22 static const char kDismiss[] = "dismiss";
23 static const char kIgnore[] = "ignore";
24
21 namespace base { 25 namespace base {
22 class DictionaryValue; 26 class DictionaryValue;
23 } 27 }
24 28
25 class Chrome; 29 class Chrome;
26 class Status; 30 class Status;
27 class WebDriverLog; 31 class WebDriverLog;
28 class WebView; 32 class WebView;
29 33
30 struct FrameInfo { 34 struct FrameInfo {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ScopedVector<WebDriverLog> devtools_logs; 83 ScopedVector<WebDriverLog> devtools_logs;
80 std::unique_ptr<WebDriverLog> driver_log; 84 std::unique_ptr<WebDriverLog> driver_log;
81 base::ScopedTempDir temp_dir; 85 base::ScopedTempDir temp_dir;
82 std::unique_ptr<base::DictionaryValue> capabilities; 86 std::unique_ptr<base::DictionaryValue> capabilities;
83 bool auto_reporting_enabled; 87 bool auto_reporting_enabled;
84 // |command_listeners| should be declared after |chrome|. When the |Session| 88 // |command_listeners| should be declared after |chrome|. When the |Session|
85 // is destroyed, |command_listeners| should be freed first, since some 89 // is destroyed, |command_listeners| should be freed first, since some
86 // |CommandListener|s might be |CommandListenerProxy|s that forward to 90 // |CommandListener|s might be |CommandListenerProxy|s that forward to
87 // |DevToolsEventListener|s owned by |chrome|. 91 // |DevToolsEventListener|s owned by |chrome|.
88 ScopedVector<CommandListener> command_listeners; 92 ScopedVector<CommandListener> command_listeners;
93 std::string unexpected_alert_behaviour;
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_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/client/chromedriver.py ('k') | chrome/test/chromedriver/session_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698