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

Side by Side Diff: chrome/test/ui/named_interface_uitest.cc

Issue 4202004: Add named testing interface (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/ui/ui_test.h"
6
7 #include "chrome/common/url_constants.h"
8 #include "chrome/test/automation/proxy_launcher.h"
9
10 // The named testing interface enables the use of a named socket for controlling
11 // the browser. This eliminates the dependency that the browser must be forked
12 // from the controlling process.
13 namespace {
14
15 class NamedInterfaceTest : public UITest {
16 public:
17 NamedInterfaceTest() {
18 show_window_ = true;
19 }
20
21 virtual ProxyLauncher *CreateProxyLauncher() {
22 return new NamedProxyLauncher(true, true);
23 }
24 };
25
26 // Basic sanity test for named testing interface which
27 // launches a browser instance that uses a named socket, then
28 // sends it some commands to open some tabs over that socket.
29 TEST_F(NamedInterfaceTest, BasicNamedInterface) {
30 scoped_refptr<BrowserProxy> browser_proxy(
31 automation()->GetBrowserWindow(0));
32 ASSERT_TRUE(browser_proxy.get());
33
34 for (int i = 0; i < 10; ++i)
35 ASSERT_TRUE(browser_proxy->AppendTab(GURL(chrome::kAboutBlankURL)));
36 }
37
John Grabowski 2010/11/12 23:32:53 Add a test which launches browser, then connects,
dtu 2010/11/16 01:30:40 This is not implemented yet and looks to be a litt
John Grabowski 2010/11/16 01:33:03 Fine to defer. Can you put a TODO(dtu) in here wit
38 } // namespace
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698