OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/process/process_handle.h" | 5 #include "base/process/process_handle.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "content/browser/media/webrtc_internals.h" | 8 #include "content/browser/media/webrtc_internals.h" |
9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #else | 45 #else |
46 #define IntToStringType base::IntToString | 46 #define IntToStringType base::IntToString |
47 #endif | 47 #endif |
48 | 48 |
49 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) | 49 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) |
50 // Timing out on ARM linux bot: http://crbug.com/238490 | 50 // Timing out on ARM linux bot: http://crbug.com/238490 |
51 #define MAYBE_CallWithAecDump DISABLED_CallWithAecDump | 51 #define MAYBE_CallWithAecDump DISABLED_CallWithAecDump |
52 #elif defined(OS_ANDROID) && defined(ADDRESS_SANITIZER) | 52 #elif defined(OS_ANDROID) && defined(ADDRESS_SANITIZER) |
53 // Renderer crashes under Android ASAN: https://crbug.com/408496. | 53 // Renderer crashes under Android ASAN: https://crbug.com/408496. |
54 #define MAYBE_CallWithAecDump DISABLED_CallWithAecDump | 54 #define MAYBE_CallWithAecDump DISABLED_CallWithAecDump |
| 55 #elif defined(OS_WIN) && !defined(NDEBUG) |
| 56 // Flaky on Webkit Win7 Debug bot: http://crbug.com/417756 |
| 57 #define MAYBE_CallWithAecDump DISABLED_CallWithAecDump |
55 #else | 58 #else |
56 #define MAYBE_CallWithAecDump CallWithAecDump | 59 #define MAYBE_CallWithAecDump CallWithAecDump |
57 #endif | 60 #endif |
58 | 61 |
59 // This tests will make a complete PeerConnection-based call, verify that | 62 // This tests will make a complete PeerConnection-based call, verify that |
60 // video is playing for the call, and verify that a non-empty AEC dump file | 63 // video is playing for the call, and verify that a non-empty AEC dump file |
61 // exists. The AEC dump is enabled through webrtc-internals. The HTML and | 64 // exists. The AEC dump is enabled through webrtc-internals. The HTML and |
62 // Javascript is bypassed since it would trigger a file picker dialog. Instead, | 65 // Javascript is bypassed since it would trigger a file picker dialog. Instead, |
63 // the dialog callback FileSelected() is invoked directly. In fact, there's | 66 // the dialog callback FileSelected() is invoked directly. In fact, there's |
64 // never a webrtc-internals page opened at all since that's not needed. | 67 // never a webrtc-internals page opened at all since that's not needed. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 EXPECT_TRUE(base::PathExists(unique_dump_file)); | 206 EXPECT_TRUE(base::PathExists(unique_dump_file)); |
204 int64 file_size = 0; | 207 int64 file_size = 0; |
205 EXPECT_TRUE(base::GetFileSize(unique_dump_file, &file_size)); | 208 EXPECT_TRUE(base::GetFileSize(unique_dump_file, &file_size)); |
206 EXPECT_GT(file_size, 0); | 209 EXPECT_GT(file_size, 0); |
207 | 210 |
208 base::DeleteFile(unique_dump_file, false); | 211 base::DeleteFile(unique_dump_file, false); |
209 } | 212 } |
210 } | 213 } |
211 | 214 |
212 } // namespace content | 215 } // namespace content |
OLD | NEW |