Make castv2 performance test work.
[chromium-blink-merge.git] / chrome / browser / devtools / device / webrtc / devtools_bridge_client_browsertest.h
blobd5d0fa98867aa7f61eed68d2a867cb18648f7bb9
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERTEST_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERTEST_H_
8 #include "chrome/browser/signin/fake_signin_manager.h"
9 #include "chrome/test/base/web_ui_browser_test.h"
11 class ProfileOAuth2TokenService;
13 namespace content {
14 class WebUIMessageHandler;
17 class DevToolsBridgeClientBrowserTest : public WebUIBrowserTest {
18 public:
19 DevToolsBridgeClientBrowserTest();
20 ~DevToolsBridgeClientBrowserTest() override;
22 // InProcessBrowserTest overrides.
23 void SetUpOnMainThread() override;
24 void TearDownOnMainThread() override;
25 content::WebUIMessageHandler* GetMockMessageHandler() override;
27 private:
28 class DevToolsBridgeClientMock;
29 class GCDApiFlowMock;
30 class MessageHandler;
32 scoped_ptr<FakeSigninManagerForTesting> fake_signin_manager_;
33 scoped_ptr<ProfileOAuth2TokenService> fake_token_service_;
34 base::WeakPtr<DevToolsBridgeClientMock> client_mock_;
35 scoped_ptr<MessageHandler> handler_;
36 std::map<int, GCDApiFlowMock*> flows_;
37 int last_flow_id_;
40 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERTEST_H_