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

Unified Diff: chrome/browser/extensions/api/alarms/alarms_api_unittest.cc

Issue 258793006: Suppress Errors for chrome.alarm.get (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/browser/extensions/api/alarms/alarms_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/alarms/alarms_api_unittest.cc
diff --git a/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc b/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc
index 0fe501f344ea8ad0b6787adf389fc748e0991c6e..e5c6e6da0be3a0d2e8aa8e5ff6ac5765e8b61f1c 100644
--- a/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc
+++ b/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc
@@ -323,9 +323,9 @@ TEST_F(ExtensionAlarmsTest, Get) {
// Get a non-existent one.
{
- std::string error = RunFunctionAndReturnError(
- new AlarmsGetFunction(), "[\"nobody\"]");
- EXPECT_FALSE(error.empty());
+ scoped_ptr<base::DictionaryValue> result(RunFunctionAndReturnDictionary(
+ new AlarmsGetFunction(), "[\"nobody\"]"));
+ ASSERT_FALSE(result.get());
}
}
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarms_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698