| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authos. All rights reserved. | 1 // Copyright (c) 2009 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "webkit/appcache/appcache.h" | 6 #include "webkit/appcache/appcache.h" |
| 7 #include "webkit/appcache/appcache_group.h" | 7 #include "webkit/appcache/appcache_group.h" |
| 8 #include "webkit/appcache/appcache_host.h" | 8 #include "webkit/appcache/appcache_host.h" |
| 9 #include "webkit/appcache/mock_appcache_service.h" | 9 #include "webkit/appcache/mock_appcache_service.h" |
| 10 #include "webkit/appcache/appcache_update_job.h" | 10 #include "webkit/appcache/appcache_update_job.h" |
| 11 | 11 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 EXPECT_TRUE(group->FindObserver(&host, group->observers_)); | 265 EXPECT_TRUE(group->FindObserver(&host, group->observers_)); |
| 266 | 266 |
| 267 // Delete update to cause it to complete. Verify host is notified. | 267 // Delete update to cause it to complete. Verify host is notified. |
| 268 delete group->update_job_; | 268 delete group->update_job_; |
| 269 EXPECT_EQ(AppCacheGroup::IDLE, group->update_status_); | 269 EXPECT_EQ(AppCacheGroup::IDLE, group->update_status_); |
| 270 EXPECT_FALSE(group->restart_update_task_); | 270 EXPECT_FALSE(group->restart_update_task_); |
| 271 EXPECT_TRUE(host.update_completed_); | 271 EXPECT_TRUE(host.update_completed_); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace appcache | 274 } // namespace appcache |
| OLD | NEW |