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

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

Issue 23467010: [chromedriver] Logging tweaks and fixes. (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
« no previous file with comments | « chrome/test/chromedriver/server/http_handler.cc ('k') | chrome/test/chromedriver/session.cc » ('j') | 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 #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 <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 explicit Session(const std::string& id); 41 explicit Session(const std::string& id);
42 Session(const std::string& id, scoped_ptr<Chrome> chrome); 42 Session(const std::string& id, scoped_ptr<Chrome> chrome);
43 ~Session(); 43 ~Session();
44 44
45 Status GetTargetWindow(WebView** web_view); 45 Status GetTargetWindow(WebView** web_view);
46 46
47 void SwitchToTopFrame(); 47 void SwitchToTopFrame();
48 void SwitchToSubFrame(const std::string& frame_id, 48 void SwitchToSubFrame(const std::string& frame_id,
49 const std::string& chromedriver_frame_id); 49 const std::string& chromedriver_frame_id);
50 std::string GetCurrentFrameId() const; 50 std::string GetCurrentFrameId() const;
51 std::vector<WebDriverLog*> GetAllLogs() const;
51 52
52 const std::string id; 53 const std::string id;
53 bool quit; 54 bool quit;
54 bool detach; 55 bool detach;
55 bool force_devtools_screenshot; 56 bool force_devtools_screenshot;
56 scoped_ptr<Chrome> chrome; 57 scoped_ptr<Chrome> chrome;
57 std::string window; 58 std::string window;
58 int sticky_modifiers; 59 int sticky_modifiers;
59 // List of |FrameInfo|s for each frame to the current target frame from the 60 // List of |FrameInfo|s for each frame to the current target frame from the
60 // first frame element in the root document. If target frame is window.top, 61 // first frame element in the root document. If target frame is window.top,
61 // this list will be empty. 62 // this list will be empty.
62 std::list<FrameInfo> frames; 63 std::list<FrameInfo> frames;
63 WebPoint mouse_position; 64 WebPoint mouse_position;
64 base::TimeDelta implicit_wait; 65 base::TimeDelta implicit_wait;
65 base::TimeDelta page_load_timeout; 66 base::TimeDelta page_load_timeout;
66 base::TimeDelta script_timeout; 67 base::TimeDelta script_timeout;
67 scoped_ptr<std::string> prompt_text; 68 scoped_ptr<std::string> prompt_text;
68 scoped_ptr<Geoposition> overridden_geoposition; 69 scoped_ptr<Geoposition> overridden_geoposition;
69 // Logs that populate from DevTools events. 70 // Logs that populate from DevTools events.
70 ScopedVector<WebDriverLog> devtools_logs; 71 ScopedVector<WebDriverLog> devtools_logs;
72 scoped_ptr<WebDriverLog> driver_log;
71 base::ScopedTempDir temp_dir; 73 base::ScopedTempDir temp_dir;
72 const scoped_ptr<base::DictionaryValue> capabilities; 74 scoped_ptr<base::DictionaryValue> capabilities;
73
74 private:
75 scoped_ptr<base::DictionaryValue> CreateCapabilities();
76 }; 75 };
77 76
77 Session* GetThreadLocalSession();
78
79 void SetThreadLocalSession(scoped_ptr<Session> session);
80
78 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_ 81 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/server/http_handler.cc ('k') | chrome/test/chromedriver/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698