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

Unified Diff: chrome/test/perf/dom_checker_uitest.cc

Issue 7714004: base: Add AsList() function to Value API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 9 years, 4 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 | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/webdriver/commands/response.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/dom_checker_uitest.cc
diff --git a/chrome/test/perf/dom_checker_uitest.cc b/chrome/test/perf/dom_checker_uitest.cc
index 6ca9c1a4681189215c4de2b0e4f820b69584326c..4196666ae1823491477c3a63cb109170453a61d0 100644
--- a/chrome/test/perf/dom_checker_uitest.cc
+++ b/chrome/test/perf/dom_checker_uitest.cc
@@ -175,12 +175,11 @@ class DomCheckerTest : public UITest {
if (!value.get())
return false;
- EXPECT_TRUE(value->IsType(Value::TYPE_LIST));
- if (!value->IsType(Value::TYPE_LIST))
+ EXPECT_TRUE(value->AsList());
+ ListValue* list_value = value->AsList();
+ if (!list_value)
return false;
- ListValue* list_value = static_cast<ListValue*>(value.get());
-
// The parsed JSON object will be an array of strings, each of which is a
// test failure. Add those strings to the results set.
ListValue::const_iterator it = list_value->begin();
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | chrome/test/webdriver/commands/response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698