| Index: chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc
|
| diff --git a/chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc
|
| index 75007961ec997d8bf191b92319537dfa807e84a6..b426ff43816745e5b5fdf51de9e570a890010f65 100644
|
| --- a/chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc
|
| +++ b/chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc
|
| @@ -48,6 +48,19 @@ TEST_F(CannedBrowsingDataLocalStorageTest, Delete) {
|
| EXPECT_EQ(2u, helper->GetLocalStorageCount());
|
| helper->DeleteOrigin(origin1);
|
| EXPECT_EQ(1u, helper->GetLocalStorageCount());
|
| +
|
| + // Local storage for a suborigin
|
| + // (https://www.chromestatus.com/feature/5569465034997760) should be deleted
|
| + // when the corresponding physical origin is deleted.
|
| + const GURL suborigin("http-so://suborigin.foo.example.com");
|
| + helper->AddLocalStorage(suborigin);
|
| + EXPECT_EQ(2u, helper->GetLocalStorageCount());
|
| + helper->DeleteOrigin(origin3);
|
| + EXPECT_EQ(0u, helper->GetLocalStorageCount());
|
| + helper->AddLocalStorage(suborigin);
|
| + EXPECT_EQ(1u, helper->GetLocalStorageCount());
|
| + helper->DeleteOrigin(origin3);
|
| + EXPECT_EQ(0u, helper->GetLocalStorageCount());
|
| }
|
|
|
| TEST_F(CannedBrowsingDataLocalStorageTest, IgnoreExtensionsAndDevTools) {
|
|
|