| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/infobars/infobar.h" | 10 #include "chrome/browser/infobars/infobar.h" |
| 11 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
| 12 #include "chrome/browser/media/media_stream_infobar_delegate.h" | 12 #include "chrome/browser/media/media_stream_infobar_delegate.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_tabstrip.h" | 15 #include "chrome/browser/ui/browser_tabstrip.h" |
| 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
| 21 #include "chrome/test/ui/ui_test.h" | 21 #include "chrome/test/ui/ui_test.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 #include "content/public/test/browser_test_utils.h" | 23 #include "content/public/test/browser_test_utils.h" |
| 24 #include "net/test/spawned_test_server.h" | 24 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 25 | 25 |
| 26 static const base::FilePath::CharType kPeerConnectionServer[] = | 26 static const base::FilePath::CharType kPeerConnectionServer[] = |
| 27 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 28 FILE_PATH_LITERAL("peerconnection_server.exe"); | 28 FILE_PATH_LITERAL("peerconnection_server.exe"); |
| 29 #else | 29 #else |
| 30 FILE_PATH_LITERAL("peerconnection_server"); | 30 FILE_PATH_LITERAL("peerconnection_server"); |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 static const char kMainWebrtcTestHtmlPage[] = | 33 static const char kMainWebrtcTestHtmlPage[] = |
| 34 "files/webrtc/webrtc_jsep01_test.html"; | 34 "files/webrtc/webrtc_jsep01_test.html"; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 WaitForVideo(left_tab); | 226 WaitForVideo(left_tab); |
| 227 WaitForVideo(right_tab); | 227 WaitForVideo(right_tab); |
| 228 | 228 |
| 229 HangUp(left_tab); | 229 HangUp(left_tab); |
| 230 WaitUntilHangupVerified(left_tab); | 230 WaitUntilHangupVerified(left_tab); |
| 231 WaitUntilHangupVerified(right_tab); | 231 WaitUntilHangupVerified(right_tab); |
| 232 | 232 |
| 233 AssertNoAsynchronousErrors(left_tab); | 233 AssertNoAsynchronousErrors(left_tab); |
| 234 AssertNoAsynchronousErrors(right_tab); | 234 AssertNoAsynchronousErrors(right_tab); |
| 235 } | 235 } |
| OLD | NEW |