OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <ctime> | 5 #include <ctime> |
6 | 6 |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "chrome/browser/media/webrtc_browsertest_base.h" | 9 #include "chrome/browser/media/webrtc_browsertest_base.h" |
10 #include "chrome/browser/media/webrtc_browsertest_common.h" | 10 #include "chrome/browser/media/webrtc_browsertest_common.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/browser_tabstrip.h" | 13 #include "chrome/browser/ui/browser_tabstrip.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
17 #include "chrome/test/ui/ui_test.h" | |
18 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
19 #include "net/test/embedded_test_server/embedded_test_server.h" | 18 #include "net/test/embedded_test_server/embedded_test_server.h" |
20 #include "testing/perf/perf_test.h" | 19 #include "testing/perf/perf_test.h" |
21 | 20 |
22 static const base::FilePath::CharType kReferenceFile[] = | 21 static const base::FilePath::CharType kReferenceFile[] = |
23 #if defined (OS_WIN) | 22 #if defined (OS_WIN) |
24 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-win.wav"); | 23 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-win.wav"); |
25 #else | 24 #else |
26 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-linux.wav"); | 25 FILE_PATH_LITERAL("pyauto_private/webrtc/human-voice-linux.wav"); |
27 #endif | 26 #endif |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // TODO(phoglund): simulate key presses, look for changes in typing detection | 139 // TODO(phoglund): simulate key presses, look for changes in typing detection |
141 // state. | 140 // state. |
142 test::SleepInJavascript(left_tab, 10000); | 141 test::SleepInJavascript(left_tab, 10000); |
143 | 142 |
144 HangUp(left_tab); | 143 HangUp(left_tab); |
145 WaitUntilHangupVerified(left_tab); | 144 WaitUntilHangupVerified(left_tab); |
146 WaitUntilHangupVerified(right_tab); | 145 WaitUntilHangupVerified(right_tab); |
147 | 146 |
148 ASSERT_TRUE(peerconnection_server_.Stop()); | 147 ASSERT_TRUE(peerconnection_server_.Stop()); |
149 } | 148 } |
OLD | NEW |