Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/webrtc/webrtc_audio_debug_recordings_browsertest.cc

Issue 2768623003: Re-enabling piece of WebRtcAudioDebugRecordingsBrowserTest.CallWithAudioDebugRecordings on Mac. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/process/process_handle.h" 7 #include "base/process/process_handle.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 file_size = 0; 160 file_size = 0;
161 EXPECT_TRUE(base::GetFileSize(file_path, &file_size)); 161 EXPECT_TRUE(base::GetFileSize(file_path, &file_size));
162 EXPECT_GT(file_size, kWaveHeaderSizeBytes); 162 EXPECT_GT(file_size, kWaveHeaderSizeBytes);
163 EXPECT_TRUE(base::DeleteFile(file_path, false)); 163 EXPECT_TRUE(base::DeleteFile(file_path, false));
164 164
165 // Verify that the expected output audio files exists and contains some data. 165 // Verify that the expected output audio files exists and contains some data.
166 // Two files are expected, one for each peer in the call. 166 // Two files are expected, one for each peer in the call.
167 for (int i = 0; i < 2; ++i) { 167 for (int i = 0; i < 2; ++i) {
168 file_path = GetExpectedOutputAudioFileName( 168 file_path = GetExpectedOutputAudioFileName(
169 base_file_path, kExpectedFirstOutputStreamId + i); 169 base_file_path, kExpectedFirstOutputStreamId + i);
170 // Flaky on Mac. http://crbug.com/700859.
171 #if !defined(OS_MACOSX)
172 EXPECT_TRUE(base::PathExists(file_path)); 170 EXPECT_TRUE(base::PathExists(file_path));
173 file_size = 0; 171 file_size = 0;
174 EXPECT_TRUE(base::GetFileSize(file_path, &file_size)); 172 EXPECT_TRUE(base::GetFileSize(file_path, &file_size));
175 EXPECT_GT(file_size, kWaveHeaderSizeBytes); 173 EXPECT_GT(file_size, kWaveHeaderSizeBytes);
176 #endif
177 EXPECT_TRUE(base::DeleteFile(file_path, false)); 174 EXPECT_TRUE(base::DeleteFile(file_path, false));
178 } 175 }
179 176
180 // Verify that no other files exist and remove temp dir. 177 // Verify that no other files exist and remove temp dir.
181 EXPECT_TRUE(base::IsDirectoryEmpty(temp_dir_path)); 178 EXPECT_TRUE(base::IsDirectoryEmpty(temp_dir_path));
182 EXPECT_TRUE(base::DeleteFile(temp_dir_path, false)); 179 EXPECT_TRUE(base::DeleteFile(temp_dir_path, false));
183 180
184 base::ThreadRestrictions::SetIOAllowed(prev_io_allowed); 181 base::ThreadRestrictions::SetIOAllowed(prev_io_allowed);
185 } 182 }
186 183
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 321 }
325 322
326 // Verify that no other files exist and remove temp dir. 323 // Verify that no other files exist and remove temp dir.
327 EXPECT_TRUE(base::IsDirectoryEmpty(temp_dir_path)); 324 EXPECT_TRUE(base::IsDirectoryEmpty(temp_dir_path));
328 EXPECT_TRUE(base::DeleteFile(temp_dir_path, false)); 325 EXPECT_TRUE(base::DeleteFile(temp_dir_path, false));
329 326
330 base::ThreadRestrictions::SetIOAllowed(prev_io_allowed); 327 base::ThreadRestrictions::SetIOAllowed(prev_io_allowed);
331 } 328 }
332 329
333 } // namespace content 330 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698