OLD | NEW |
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 "components/gcm_driver/crypto/encryption_header_parsers.h" | 5 #include "components/gcm_driver/crypto/encryption_header_parsers.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <vector> | 10 #include <vector> |
8 | 11 |
9 #include "base/macros.h" | 12 #include "base/macros.h" |
10 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
12 | 15 |
13 namespace gcm { | 16 namespace gcm { |
14 | 17 |
15 namespace { | 18 namespace { |
16 | 19 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 ASSERT_EQ(1u, crypto_key_values.size()); | 289 ASSERT_EQ(1u, crypto_key_values.size()); |
287 | 290 |
288 EXPECT_EQ("myotherkeyid", crypto_key_values[0].keyid); | 291 EXPECT_EQ("myotherkeyid", crypto_key_values[0].keyid); |
289 EXPECT_EQ("akey", crypto_key_values[0].aesgcm128); | 292 EXPECT_EQ("akey", crypto_key_values[0].aesgcm128); |
290 EXPECT_EQ("yourdh", crypto_key_values[0].dh); | 293 EXPECT_EQ("yourdh", crypto_key_values[0].dh); |
291 } | 294 } |
292 | 295 |
293 } // namespace | 296 } // namespace |
294 | 297 |
295 } // namespace gcm | 298 } // namespace gcm |
OLD | NEW |