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

Unified Diff: content/renderer/webcrypto/webcrypto_impl_unittest.cc

Issue 138953016: [style] Remove braces from single-line if statements for style consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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 | « content/renderer/webcrypto/webcrypto_impl_openssl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webcrypto/webcrypto_impl_unittest.cc
diff --git a/content/renderer/webcrypto/webcrypto_impl_unittest.cc b/content/renderer/webcrypto/webcrypto_impl_unittest.cc
index 8f4ccd00269b0613dcdb1fb485553c85a05e11c8..85307e562103737b7aa65781be861750f4d8a610 100644
--- a/content/renderer/webcrypto/webcrypto_impl_unittest.cc
+++ b/content/renderer/webcrypto/webcrypto_impl_unittest.cc
@@ -301,9 +301,8 @@ class WebCryptoImplTest : public testing::Test {
blink::WebCryptoKeyUsageEncrypt,
&key);
- if (status.IsError()) {
+ if (status.IsError())
EXPECT_EQ(Status::ErrorUnsupported().ToString(), status.ToString());
- }
return status.IsSuccess();
}
@@ -320,9 +319,8 @@ class WebCryptoImplTest : public testing::Test {
blink::WebArrayBuffer output;
Status status = EncryptInternal(algorithm, key, plain_text, &output);
- if (status.IsError()) {
+ if (status.IsError())
return status;
- }
if (output.byteLength() * 8 < tag_length_bits) {
EXPECT_TRUE(false);
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698