Add readelf and nm dummy values to cros.
[chromium-blink-merge.git] / components / test_runner / mock_web_user_media_client.h
blob1140086b3243e820827e4c191982f3afba9acb9a
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 COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
8 #include "base/macros.h"
9 #include "components/test_runner/web_task.h"
10 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
12 namespace test_runner {
14 class WebTestDelegate;
16 class MockWebUserMediaClient : public blink::WebUserMediaClient {
17 public:
18 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
19 virtual ~MockWebUserMediaClient() {}
21 virtual void requestUserMedia(const blink::WebUserMediaRequest&);
22 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&);
23 virtual void requestMediaDevices(const blink::WebMediaDevicesRequest&);
24 virtual void cancelMediaDevicesRequest(const blink::WebMediaDevicesRequest&);
25 virtual void requestSources(const blink::WebMediaStreamTrackSourcesRequest&);
27 // Task related methods
28 WebTaskList* mutable_task_list() { return &task_list_; }
30 private:
31 WebTaskList task_list_;
32 WebTestDelegate* delegate_;
34 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
37 } // namespace test_runner
39 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_