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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/process/launch.h" | 8 #include "base/process/launch.h" |
9 #include "base/process/process_metrics.h" | 9 #include "base/process/process_metrics.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/test/base/in_process_browser_test.h" | 28 #include "chrome/test/base/in_process_browser_test.h" |
29 #include "chrome/test/base/ui_test_utils.h" | 29 #include "chrome/test/base/ui_test_utils.h" |
30 #include "chrome/test/perf/perf_test.h" | 30 #include "chrome/test/perf/perf_test.h" |
31 #include "chrome/test/ui/ui_test.h" | 31 #include "chrome/test/ui/ui_test.h" |
32 #include "content/public/browser/browser_message_filter.h" | 32 #include "content/public/browser/browser_message_filter.h" |
33 #include "content/public/browser/notification_service.h" | 33 #include "content/public/browser/notification_service.h" |
34 #include "content/public/browser/render_process_host.h" | 34 #include "content/public/browser/render_process_host.h" |
35 #include "content/public/test/browser_test_utils.h" | 35 #include "content/public/test/browser_test_utils.h" |
36 #include "net/test/embedded_test_server/embedded_test_server.h" | 36 #include "net/test/embedded_test_server/embedded_test_server.h" |
37 #include "net/test/python_utils.h" | 37 #include "net/test/python_utils.h" |
| 38 #include "testing/perf/perf_test.h" |
38 | 39 |
39 static const char kMainWebrtcTestHtmlPage[] = | 40 static const char kMainWebrtcTestHtmlPage[] = |
40 "/webrtc/webrtc_jsep01_test.html"; | 41 "/webrtc/webrtc_jsep01_test.html"; |
41 | 42 |
42 static const char kTestLoggingSessionId[] = "0123456789abcdef"; | 43 static const char kTestLoggingSessionId[] = "0123456789abcdef"; |
43 | 44 |
44 // Top-level integration test for WebRTC. Requires a real webcam and microphone | 45 // Top-level integration test for WebRTC. Requires a real webcam and microphone |
45 // on the running system. This test is not meant to run in the main browser | 46 // on the running system. This test is not meant to run in the main browser |
46 // test suite since normal tester machines do not have webcams. | 47 // test suite since normal tester machines do not have webcams. |
47 class WebrtcBrowserTest : public WebRtcTestBase { | 48 class WebrtcBrowserTest : public WebRtcTestBase { |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 multipart_lines[25].c_str()); | 519 multipart_lines[25].c_str()); |
519 EXPECT_STREQ("Content-Type: application/gzip", | 520 EXPECT_STREQ("Content-Type: application/gzip", |
520 multipart_lines[26].c_str()); | 521 multipart_lines[26].c_str()); |
521 EXPECT_TRUE(multipart_lines[27].empty()); | 522 EXPECT_TRUE(multipart_lines[27].empty()); |
522 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. | 523 EXPECT_TRUE(multipart_lines[28].empty()); // The removed zip part. |
523 std::string final_delimiter = boundary; | 524 std::string final_delimiter = boundary; |
524 final_delimiter += "--"; | 525 final_delimiter += "--"; |
525 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); | 526 EXPECT_STREQ(final_delimiter.c_str(), multipart_lines[29].c_str()); |
526 EXPECT_TRUE(multipart_lines[30].empty()); | 527 EXPECT_TRUE(multipart_lines[30].empty()); |
527 } | 528 } |
OLD | NEW |