OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERTEST
_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERTEST
_H_ |
| 7 |
| 8 #include "chrome/browser/signin/fake_signin_manager.h" |
| 9 #include "chrome/test/base/web_ui_browser_test.h" |
| 10 |
| 11 class ProfileOAuth2TokenService; |
| 12 |
| 13 namespace content { |
| 14 class WebUIMessageHandler; |
| 15 } |
| 16 |
| 17 class DevToolsBridgeClientBrowserTest : public WebUIBrowserTest { |
| 18 public: |
| 19 DevToolsBridgeClientBrowserTest(); |
| 20 ~DevToolsBridgeClientBrowserTest(); |
| 21 |
| 22 // InProcessBrowserTest overrides. |
| 23 void SetUpOnMainThread() override; |
| 24 void TearDownOnMainThread() override; |
| 25 content::WebUIMessageHandler* GetMockMessageHandler() override; |
| 26 |
| 27 private: |
| 28 class DevToolsBridgeClientMock; |
| 29 class GCDApiFlowMock; |
| 30 class MessageHandler; |
| 31 |
| 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_; |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_WEBRTC_DEVTOOLS_BRIDGE_CLIENT_BROWSERT
EST_H_ |
OLD | NEW |