#include "chrome/browser/media/webrtc/media_stream_focus_delegate.h"
#include <memory>
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
_;
Return;
namespace {
const content::DesktopMediaID kDesktopMediaIDWindow = …;
class MockWindowCapturer : public webrtc::DesktopCapturer { … };
}
class MediaStreamFocusDelegateTest : public BrowserWithTestWindowTest { … };
TEST_F(MediaStreamFocusDelegateTest, FirstSetFocusTrueFocusesTab) { … }
TEST_F(MediaStreamFocusDelegateTest, SecondSetFocusTrueHasNoEffect) { … }
TEST_F(MediaStreamFocusDelegateTest, SetFocusFalseClosesFocusWindow) { … }
TEST_F(MediaStreamFocusDelegateTest, ChangeOfTabClosesFocusWindow) { … }
TEST_F(MediaStreamFocusDelegateTest, SelectedSourceFocusesWindow) { … }
TEST_F(MediaStreamFocusDelegateTest, NotSelectedSourceDoesNotFocusWindow) { … }