Index: chrome/browser/extensions/api/storage/settings_frontend_unittest.cc |
diff --git a/chrome/browser/extensions/api/storage/settings_frontend_unittest.cc b/chrome/browser/extensions/api/storage/settings_frontend_unittest.cc |
index c718e3106eb2784f9e0d6068e5a9639ae8e7fcc7..f26d40b652df11b41f6d20937663559fcb9ba1b4 100644 |
--- a/chrome/browser/extensions/api/storage/settings_frontend_unittest.cc |
+++ b/chrome/browser/extensions/api/storage/settings_frontend_unittest.cc |
@@ -93,6 +93,17 @@ class ExtensionSettingsFrontendTest : public testing::Test { |
// alternating in each test. |
// TODO(kalman): explicitly test the two interact correctly. |
+// Tests that the frontend is set up correctly. |
+TEST_F(ExtensionSettingsFrontendTest, Basics) { |
+ // Local storage is always enabled. |
+ EXPECT_TRUE(frontend_->IsStorageEnabled(settings::LOCAL)); |
+ EXPECT_TRUE(frontend_->GetValueStoreCache(settings::LOCAL)); |
+ |
+ // Invalid storage areas are not available. |
+ EXPECT_FALSE(frontend_->IsStorageEnabled(settings::INVALID)); |
+ EXPECT_FALSE(frontend_->GetValueStoreCache(settings::INVALID)); |
+} |
+ |
TEST_F(ExtensionSettingsFrontendTest, SettingsPreservedAcrossReconstruction) { |
const std::string id = "ext"; |
scoped_refptr<const Extension> extension = |