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

Unified Diff: components/test_runner/mock_web_user_media_client.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/test_runner/mock_web_user_media_client.h
diff --git a/components/test_runner/mock_web_user_media_client.h b/components/test_runner/mock_web_user_media_client.h
deleted file mode 100644
index 818db92031a1bd8227e83477d05f2f0e44b05ad5..0000000000000000000000000000000000000000
--- a/components/test_runner/mock_web_user_media_client.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
-#define COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h"
-#include "third_party/WebKit/public/web/WebUserMediaClient.h"
-
-namespace test_runner {
-
-class WebTestDelegate;
-
-class MockWebUserMediaClient : public blink::WebUserMediaClient {
- public:
- explicit MockWebUserMediaClient(WebTestDelegate* delegate);
- ~MockWebUserMediaClient() override;
-
- void requestUserMedia(const blink::WebUserMediaRequest&) override;
- void cancelUserMediaRequest(const blink::WebUserMediaRequest&) override;
- void requestMediaDevices(const blink::WebMediaDevicesRequest&) override;
- void setMediaDeviceChangeObserver(
- const blink::WebMediaDeviceChangeObserver&) override;
-
- private:
- WebTestDelegate* delegate_;
- blink::WebMediaDeviceChangeObserver media_device_change_observer_;
- bool should_enumerate_extra_device_;
-
- base::WeakPtrFactory<MockWebUserMediaClient> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698