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

Unified Diff: media/crypto/aes_decryptor_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_frame.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/crypto/aes_decryptor_unittest.cc
diff --git a/media/crypto/aes_decryptor_unittest.cc b/media/crypto/aes_decryptor_unittest.cc
index dac0208dd1f7d90158f7de134f7c949c9ac889db..38d3b5e6e15e4eba5d7457cabe1cd7cec4bfd82c 100644
--- a/media/crypto/aes_decryptor_unittest.cc
+++ b/media/crypto/aes_decryptor_unittest.cc
@@ -272,7 +272,7 @@ class AesDecryptorTest : public testing::Test {
.WillOnce(SaveArg<1>(&decrypted));
decryptor_.Decrypt(Decryptor::kVideo, encrypted, decrypt_cb_);
- ASSERT_TRUE(decrypted);
+ ASSERT_TRUE(decrypted.get());
ASSERT_EQ(plain_text_size, decrypted->GetDataSize());
EXPECT_EQ(0, memcmp(plain_text, decrypted->GetData(), plain_text_size));
}
@@ -285,7 +285,7 @@ class AesDecryptorTest : public testing::Test {
.WillOnce(SaveArg<1>(&decrypted));
decryptor_.Decrypt(Decryptor::kVideo, encrypted, decrypt_cb_);
- ASSERT_TRUE(decrypted);
+ ASSERT_TRUE(decrypted.get());
ASSERT_EQ(plain_text_size, decrypted->GetDataSize());
EXPECT_NE(0, memcmp(plain_text, decrypted->GetData(), plain_text_size));
}
@@ -298,7 +298,7 @@ class AesDecryptorTest : public testing::Test {
.WillOnce(SaveArg<1>(&decrypted));
decryptor_.Decrypt(Decryptor::kVideo, encrypted, decrypt_cb_);
- ASSERT_TRUE(decrypted);
+ ASSERT_TRUE(decrypted.get());
EXPECT_NE(plain_text_size, decrypted->GetDataSize());
EXPECT_NE(0, memcmp(plain_text, decrypted->GetData(), plain_text_size));
}
« no previous file with comments | « media/base/video_frame.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698