| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <map> | 5 #include <map> |
| 6 #include <set> | 6 #include <set> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | |
| 10 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 11 #include "content/browser/appcache/appcache_quota_client.h" | 10 #include "content/browser/appcache/appcache_quota_client.h" |
| 12 #include "content/browser/appcache/mock_appcache_service.h" | 11 #include "content/browser/appcache/mock_appcache_service.h" |
| 13 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 namespace content { | 15 namespace content { |
| 17 | 16 |
| 18 // Declared to shorten the line lengths. | 17 // Declared to shorten the line lengths. |
| 19 static const storage::StorageType kTemp = storage::kStorageTypeTemporary; | 18 static const storage::StorageType kTemp = storage::kStorageTypeTemporary; |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 // A real completion callback from the service should | 414 // A real completion callback from the service should |
| 416 // be dropped if it comes in after NotifyAppCacheDestroyed. | 415 // be dropped if it comes in after NotifyAppCacheDestroyed. |
| 417 base::RunLoop().RunUntilIdle(); | 416 base::RunLoop().RunUntilIdle(); |
| 418 EXPECT_EQ(1, num_delete_origins_completions_); | 417 EXPECT_EQ(1, num_delete_origins_completions_); |
| 419 EXPECT_EQ(storage::kQuotaErrorAbort, delete_status_); | 418 EXPECT_EQ(storage::kQuotaErrorAbort, delete_status_); |
| 420 | 419 |
| 421 Call_OnQuotaManagerDestroyed(client); | 420 Call_OnQuotaManagerDestroyed(client); |
| 422 } | 421 } |
| 423 | 422 |
| 424 } // namespace content | 423 } // namespace content |
| OLD | NEW |