Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: components/gcm_driver/crypto/gcm_encryption_provider_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/gcm_driver/crypto/gcm_crypto_test_helpers.cc ('k') | components/gcm_driver/crypto/gcm_key_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698