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

Unified Diff: chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc

Issue 10907151: Extensions Docs Server: Enum values do not show up if enum is a type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add back braces Created 8 years, 3 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
Index: chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc
diff --git a/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc b/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc
index 3f7e77a81f26c481684716133f481a80fa30720d..588fd971cc19de2017b9eddb6144f330074e77bc 100644
--- a/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc
+++ b/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc
@@ -32,7 +32,10 @@ class MockStorageInfoProvider : public StorageInfoProvider {
linked_ptr<StorageUnitInfo> unit(new StorageUnitInfo());
unit->id = "0xbeaf";
- unit->type = systeminfo::kStorageTypeUnknown;
+ if (!api::experimental_system_info_storage::
+ GetEnumFromString(systeminfo::kStorageTypeUnknown, &unit->type)) {
+ return false;
+ }
unit->capacity = 4098;
unit->available_capacity = 1024;

Powered by Google App Engine
This is Rietveld 408576698