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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase Created 3 years, 7 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 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #include "{{namespace}}Names.h" 4 #include "{{namespace}}Names.h"
5 5
6 #include "platform/wtf/PtrUtil.h" 6 #include "platform/wtf/PtrUtil.h"
7 #include "platform/wtf/StaticConstructors.h" 7 #include "platform/wtf/StaticConstructors.h"
8 #include "platform/wtf/StdLibExtras.h" 8 #include "platform/wtf/StdLibExtras.h"
9 #include <memory> 9 #include <memory>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 {% endif %} 90 {% endif %}
91 void* address = reinterpret_cast<QualifiedName*>(&{{suffix}}AttrStorage) + a ttr_i; 91 void* address = reinterpret_cast<QualifiedName*>(&{{suffix}}AttrStorage) + a ttr_i;
92 {% if use_namespace_for_attrs %} 92 {% if use_namespace_for_attrs %}
93 QualifiedName::CreateStatic(address, stringImpl, {{namespace_prefix}}NS); 93 QualifiedName::CreateStatic(address, stringImpl, {{namespace_prefix}}NS);
94 {% else %} 94 {% else %}
95 QualifiedName::CreateStatic(address, stringImpl); 95 QualifiedName::CreateStatic(address, stringImpl);
96 {% endif %} 96 {% endif %}
97 attr_i++; 97 attr_i++;
98 } 98 }
99 {% if tags %} 99 {% if tags %}
100 ASSERT(tag_i == {{namespace}}TagsCount); 100 DCHECK_EQ(tag_i, {{namespace}}TagsCount);
101 {% endif %} 101 {% endif %}
102 ASSERT(attr_i == {{namespace}}AttrsCount); 102 DCHECK_EQ(attr_i, {{namespace}}AttrsCount);
103 } 103 }
104 104
105 } // {{namespace}} 105 } // {{namespace}}
106 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698