OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path_watcher.h" | 9 #include "base/files/file_path_watcher.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_pr
ivate_api.h" | 17 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_pr
ivate_api.h" |
18 #include "chrome/browser/extensions/extension_function_test_utils.h" | 18 #include "chrome/browser/extensions/extension_function_test_utils.h" |
19 #include "chrome/browser/extensions/extension_tab_util.h" | 19 #include "chrome/browser/extensions/extension_tab_util.h" |
20 #include "chrome/browser/media/webrtc_browsertest_base.h" | 20 #include "chrome/browser/media/webrtc/webrtc_browsertest_base.h" |
21 #include "chrome/browser/media/webrtc_browsertest_common.h" | 21 #include "chrome/browser/media/webrtc/webrtc_browsertest_common.h" |
22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
24 #include "content/public/test/browser_test_utils.h" | 24 #include "content/public/test/browser_test_utils.h" |
25 #include "extensions/browser/api_test_utils.h" | 25 #include "extensions/browser/api_test_utils.h" |
26 #include "extensions/common/test_util.h" | 26 #include "extensions/common/test_util.h" |
27 #include "media/base/media_switches.h" | 27 #include "media/base/media_switches.h" |
28 #include "net/test/embedded_test_server/embedded_test_server.h" | 28 #include "net/test/embedded_test_server/embedded_test_server.h" |
29 | 29 |
30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
31 #define IntToStringType base::IntToString16 | 31 #define IntToStringType base::IntToString16 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 ASSERT_TRUE(waiter->Start()) << "ERROR watching for " | 307 ASSERT_TRUE(waiter->Start()) << "ERROR watching for " |
308 << full_file_name.value(); | 308 << full_file_name.value(); |
309 ASSERT_TRUE(waiter->WaitForFile()); | 309 ASSERT_TRUE(waiter->WaitForFile()); |
310 ASSERT_TRUE(base::PathExists(full_file_name)); | 310 ASSERT_TRUE(base::PathExists(full_file_name)); |
311 EXPECT_TRUE(base::GetFileSize(full_file_name, &file_size)); | 311 EXPECT_TRUE(base::GetFileSize(full_file_name, &file_size)); |
312 EXPECT_GT(file_size, 0); | 312 EXPECT_GT(file_size, 0); |
313 | 313 |
314 // Clean up. | 314 // Clean up. |
315 base::DeleteFile(full_file_name, false); | 315 base::DeleteFile(full_file_name, false); |
316 } | 316 } |
OLD | NEW |