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

Unified Diff: runtime/vm/regexp_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 | « runtime/vm/regexp_parser.cc ('k') | runtime/vm/report.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_test.cc
diff --git a/runtime/vm/regexp_test.cc b/runtime/vm/regexp_test.cc
index 3948f6457cf0e3ccd0d60326b16f09391d8c0345..b7f5a77266d757bd912a7b0518279bc4a994952e 100644
--- a/runtime/vm/regexp_test.cc
+++ b/runtime/vm/regexp_test.cc
@@ -15,17 +15,17 @@ namespace dart {
static RawArray* Match(const String& pat, const String& str) {
Thread* thread = Thread::Current();
Zone* zone = thread->zone();
- const RegExp& regexp = RegExp::Handle(
- RegExpEngine::CreateRegExp(thread, pat, false, false));
+ const RegExp& regexp =
+ RegExp::Handle(RegExpEngine::CreateRegExp(thread, pat, false, false));
const Smi& idx = Smi::Handle(Smi::New(0));
return IRRegExpMacroAssembler::Execute(regexp, str, idx, zone);
}
TEST_CASE(RegExp_OneByteString) {
- uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
+ uint8_t chars[] = {'a', 'b', 'c', 'b', 'a'};
intptr_t len = ARRAY_SIZE(chars);
- const String& str = String::Handle(
- OneByteString::New(chars, len, Heap::kNew));
+ const String& str =
+ String::Handle(OneByteString::New(chars, len, Heap::kNew));
const String& pat = String::Handle(String::New("bc"));
const Array& res = Array::Handle(Match(pat, str));
@@ -43,10 +43,10 @@ TEST_CASE(RegExp_OneByteString) {
}
TEST_CASE(RegExp_TwoByteString) {
- uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
+ uint16_t chars[] = {'a', 'b', 'c', 'b', 'a'};
intptr_t len = ARRAY_SIZE(chars);
- const String& str = String::Handle(
- TwoByteString::New(chars, len, Heap::kNew));
+ const String& str =
+ String::Handle(TwoByteString::New(chars, len, Heap::kNew));
const String& pat = String::Handle(String::New("bc"));
const Array& res = Array::Handle(Match(pat, str));
@@ -64,7 +64,7 @@ TEST_CASE(RegExp_TwoByteString) {
}
TEST_CASE(RegExp_ExternalOneByteString) {
- uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
+ uint8_t chars[] = {'a', 'b', 'c', 'b', 'a'};
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
ExternalOneByteString::New(chars, len, NULL, NULL, Heap::kNew));
@@ -85,7 +85,7 @@ TEST_CASE(RegExp_ExternalOneByteString) {
}
TEST_CASE(RegExp_ExternalTwoByteString) {
- uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
+ uint16_t chars[] = {'a', 'b', 'c', 'b', 'a'};
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
ExternalTwoByteString::New(chars, len, NULL, NULL, Heap::kNew));
« no previous file with comments | « runtime/vm/regexp_parser.cc ('k') | runtime/vm/report.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698