OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_callback_factory.h" | |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
12 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webkit/appcache/appcache_quota_client.h" | 13 #include "webkit/appcache/appcache_quota_client.h" |
15 #include "webkit/appcache/mock_appcache_service.h" | 14 #include "webkit/appcache/mock_appcache_service.h" |
16 | 15 |
17 namespace appcache { | 16 namespace appcache { |
18 | 17 |
19 // Declared to shorten the line lengths. | 18 // Declared to shorten the line lengths. |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // A real completion callback from the service should | 428 // A real completion callback from the service should |
430 // be dropped if it comes in after NotifyAppCacheDestroyed. | 429 // be dropped if it comes in after NotifyAppCacheDestroyed. |
431 MessageLoop::current()->RunAllPending(); | 430 MessageLoop::current()->RunAllPending(); |
432 EXPECT_EQ(1, num_delete_origins_completions_); | 431 EXPECT_EQ(1, num_delete_origins_completions_); |
433 EXPECT_EQ(quota::kQuotaErrorAbort, delete_status_); | 432 EXPECT_EQ(quota::kQuotaErrorAbort, delete_status_); |
434 | 433 |
435 Call_OnQuotaManagerDestroyed(client); | 434 Call_OnQuotaManagerDestroyed(client); |
436 } | 435 } |
437 | 436 |
438 } // namespace appcache | 437 } // namespace appcache |
OLD | NEW |