OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/copresence/chrome_whispernet_client.h" | 5 #include "chrome/browser/copresence/chrome_whispernet_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <cmath> | 9 #include <cmath> |
8 #include <cstdlib> | 10 #include <cstdlib> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/macros.h" | 14 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
15 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 18 #include "build/build_config.h" |
16 #include "chrome/browser/extensions/api/copresence/copresence_api.h" | 19 #include "chrome/browser/extensions/api/copresence/copresence_api.h" |
17 #include "chrome/browser/extensions/extension_browsertest.h" | 20 #include "chrome/browser/extensions/extension_browsertest.h" |
18 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/test/base/in_process_browser_test.h" | 23 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "components/audio_modem/public/audio_modem_types.h" | 24 #include "components/audio_modem/public/audio_modem_types.h" |
22 #include "components/audio_modem/public/whispernet_client.h" | 25 #include "components/audio_modem/public/whispernet_client.h" |
23 #include "media/audio/audio_manager.h" | 26 #include "media/audio/audio_manager.h" |
24 #include "media/audio/audio_manager_base.h" | 27 #include "media/audio/audio_manager_base.h" |
25 #include "media/audio/audio_parameters.h" | 28 #include "media/audio/audio_parameters.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 366 |
364 EncodeTokenAndSaveSamples(client_3.get(), true, kSixZeros, token_params); | 367 EncodeTokenAndSaveSamples(client_3.get(), true, kSixZeros, token_params); |
365 DecodeSamplesAndVerifyToken(client_3.get(), true, kSixZeros, token_params); | 368 DecodeSamplesAndVerifyToken(client_3.get(), true, kSixZeros, token_params); |
366 | 369 |
367 const size_t kLongTokenLengths[2] = {8, 9}; | 370 const size_t kLongTokenLengths[2] = {8, 9}; |
368 GetTokenParamsForLengths(kLongTokenLengths, token_params); | 371 GetTokenParamsForLengths(kLongTokenLengths, token_params); |
369 | 372 |
370 EncodeTokenAndSaveSamples(client_2.get(), true, kEightZeros, token_params); | 373 EncodeTokenAndSaveSamples(client_2.get(), true, kEightZeros, token_params); |
371 DecodeSamplesAndVerifyToken(client_2.get(), true, kEightZeros, token_params); | 374 DecodeSamplesAndVerifyToken(client_2.get(), true, kEightZeros, token_params); |
372 } | 375 } |
OLD | NEW |