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

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: 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
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 12441c5e5b1445e4935027eb4ba59af8a5f6929e..23cbd22dc2cf281ad4527d1482deb45de27366ff 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);

Powered by Google App Engine
This is Rietveld 408576698