OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/trace_event_analyzer.h" | 11 #include "base/test/trace_event_analyzer.h" |
12 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
13 #include "content/public/test/browser_test_utils.h" | 13 #include "content/public/test/browser_test_utils.h" |
| 14 #include "content/public/test/content_browser_test_utils.h" |
14 #include "content/shell/browser/shell.h" | 15 #include "content/shell/browser/shell.h" |
15 #include "content/test/content_browser_test_utils.h" | |
16 #include "content/test/webrtc_content_browsertest_base.h" | 16 #include "content/test/webrtc_content_browsertest_base.h" |
17 #include "net/test/embedded_test_server/embedded_test_server.h" | 17 #include "net/test/embedded_test_server/embedded_test_server.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // This tests AEC dump enabled using the command line flag. It does not test AEC | 21 // This tests AEC dump enabled using the command line flag. It does not test AEC |
22 // dump enabled using webrtc-internals (that's tested in webrtc_browsertest.cc). | 22 // dump enabled using webrtc-internals (that's tested in webrtc_browsertest.cc). |
23 class WebRtcAecDumpBrowserTest : public WebRtcContentBrowserTest, | 23 class WebRtcAecDumpBrowserTest : public WebRtcContentBrowserTest, |
24 public testing::WithParamInterface<bool> { | 24 public testing::WithParamInterface<bool> { |
25 public: | 25 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 ExecuteJavascriptAndWaitForOk("call({video: true, audio: true});"); | 85 ExecuteJavascriptAndWaitForOk("call({video: true, audio: true});"); |
86 | 86 |
87 EXPECT_TRUE(base::PathExists(dump_file_)); | 87 EXPECT_TRUE(base::PathExists(dump_file_)); |
88 int64 file_size = 0; | 88 int64 file_size = 0; |
89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size)); | 89 EXPECT_TRUE(base::GetFileSize(dump_file_, &file_size)); |
90 EXPECT_GT(file_size, 0); | 90 EXPECT_GT(file_size, 0); |
91 } | 91 } |
92 | 92 |
93 } // namespace content | 93 } // namespace content |
OLD | NEW |