| 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/gcm_encryption_provider.h" | 5 #include "components/gcm_driver/crypto/gcm_encryption_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <sstream> | 9 #include <sstream> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/base64url.h" | 12 #include "base/base64url.h" |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 15 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_piece.h" | 18 #include "base/strings/string_piece.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 312 |
| 311 // Decrypt the message, and expect everything to go wonderfully well. | 313 // Decrypt the message, and expect everything to go wonderfully well. |
| 312 ASSERT_NO_FATAL_FAILURE(Decrypt(message)); | 314 ASSERT_NO_FATAL_FAILURE(Decrypt(message)); |
| 313 ASSERT_EQ(DECRYPTION_SUCCEEDED, decryption_result()); | 315 ASSERT_EQ(DECRYPTION_SUCCEEDED, decryption_result()); |
| 314 | 316 |
| 315 EXPECT_TRUE(decrypted_message().decrypted); | 317 EXPECT_TRUE(decrypted_message().decrypted); |
| 316 EXPECT_EQ(kExampleMessage, decrypted_message().raw_data); | 318 EXPECT_EQ(kExampleMessage, decrypted_message().raw_data); |
| 317 } | 319 } |
| 318 | 320 |
| 319 } // namespace gcm | 321 } // namespace gcm |
| OLD | NEW |