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

Unified Diff: tests/THashCache.cpp

Issue 853723002: Remove self-assignment in a test. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/THashCache.cpp
diff --git a/tests/THashCache.cpp b/tests/THashCache.cpp
index 7797431553b078c455460a90fb0a77814a047709..c35df6c7460f3804633667811fb97d6999ffe3ef 100644
--- a/tests/THashCache.cpp
+++ b/tests/THashCache.cpp
@@ -47,7 +47,6 @@ DEF_TEST(THashCache, reporter) {
Tint k11 = {11};
Element e11(k11, 22);
- e11.value = e11.value;
Element e11Collision(k11, 0);
// Element e42(4, 2);
@@ -62,7 +61,6 @@ DEF_TEST(THashCache, reporter) {
REPORTER_ASSERT(reporter, NULL == cache.find(k11));
Element& e11_c = cache.add(e11);
- e11_c.value = e11_c.value;
// Tests for simple insertion, verifying that the returned element
// has the same values as the original one
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698