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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_pr
ivate_api.h" | 11 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_pr
ivate_api.h" |
12 #include "chrome/browser/extensions/extension_apitest.h" | 12 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "chrome/browser/extensions/extension_function_test_utils.h" | 13 #include "chrome/browser/extensions/extension_function_test_utils.h" |
14 #include "chrome/browser/extensions/extension_tab_util.h" | 14 #include "chrome/browser/extensions/extension_tab_util.h" |
15 #include "chrome/browser/media/webrtc_log_uploader.h" | 15 #include "chrome/browser/media/webrtc_log_uploader.h" |
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "components/compression/compression_utils.h" | |
19 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
20 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
21 #include "extensions/common/test_util.h" | 20 #include "extensions/common/test_util.h" |
| 21 #include "third_party/zlib/google/compression_utils.h" |
22 | 22 |
23 using compression::GzipUncompress; | 23 using compression::GzipUncompress; |
24 using extensions::Extension; | 24 using extensions::Extension; |
25 using extensions::WebrtcLoggingPrivateDiscardFunction; | 25 using extensions::WebrtcLoggingPrivateDiscardFunction; |
26 using extensions::WebrtcLoggingPrivateSetMetaDataFunction; | 26 using extensions::WebrtcLoggingPrivateSetMetaDataFunction; |
27 using extensions::WebrtcLoggingPrivateStartFunction; | 27 using extensions::WebrtcLoggingPrivateStartFunction; |
28 using extensions::WebrtcLoggingPrivateStartRtpDumpFunction; | 28 using extensions::WebrtcLoggingPrivateStartRtpDumpFunction; |
29 using extensions::WebrtcLoggingPrivateStopFunction; | 29 using extensions::WebrtcLoggingPrivateStopFunction; |
30 using extensions::WebrtcLoggingPrivateStopRtpDumpFunction; | 30 using extensions::WebrtcLoggingPrivateStopRtpDumpFunction; |
31 using extensions::WebrtcLoggingPrivateStoreFunction; | 31 using extensions::WebrtcLoggingPrivateStoreFunction; |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 ASSERT_TRUE(StartAudioDebugRecordings(0)); | 436 ASSERT_TRUE(StartAudioDebugRecordings(0)); |
437 ASSERT_TRUE(StopAudioDebugRecordings()); | 437 ASSERT_TRUE(StopAudioDebugRecordings()); |
438 } | 438 } |
439 | 439 |
440 IN_PROC_BROWSER_TEST_F(WebrtcLoggingPrivateApiTest, | 440 IN_PROC_BROWSER_TEST_F(WebrtcLoggingPrivateApiTest, |
441 TestStartTimedAudioDebugRecordings) { | 441 TestStartTimedAudioDebugRecordings) { |
442 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 442 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
443 switches::kEnableAudioDebugRecordingsFromExtension); | 443 switches::kEnableAudioDebugRecordingsFromExtension); |
444 ASSERT_TRUE(StartAudioDebugRecordings(1)); | 444 ASSERT_TRUE(StartAudioDebugRecordings(1)); |
445 } | 445 } |
OLD | NEW |