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

Side by Side Diff: headless/test/headless_browser_test.h

Issue 2896763002: Implement window management devtools commands for headless. (Closed)
Patch Set: map 1 tab to 1 window and remove screen_size Created 3 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_ 5 #ifndef HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
6 #define HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_ 6 #define HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // Whether or not we should request a TabSocket when creating |web_contents_|. 123 // Whether or not we should request a TabSocket when creating |web_contents_|.
124 virtual bool GetCreateTabSocket(); 124 virtual bool GetCreateTabSocket();
125 125
126 protected: 126 protected:
127 void RunTest(); 127 void RunTest();
128 128
129 HeadlessBrowserContext* browser_context_; // Not owned. 129 HeadlessBrowserContext* browser_context_; // Not owned.
130 HeadlessWebContents* web_contents_; 130 HeadlessWebContents* web_contents_;
131 std::unique_ptr<HeadlessDevToolsClient> devtools_client_; 131 std::unique_ptr<HeadlessDevToolsClient> devtools_client_;
132 std::unique_ptr<HeadlessDevToolsClient> browser_devtools_client_;
132 bool render_process_exited_; 133 bool render_process_exited_;
133 }; 134 };
134 135
135 } // namespace headless 136 } // namespace headless
136 137
137 #endif // HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_ 138 #endif // HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698