| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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 <string> |    5 #include <string> | 
|    6  |    6  | 
|    7 #include "base/message_loop.h" |    7 #include "base/message_loop/message_loop.h" | 
|    8 #include "testing/gtest/include/gtest/gtest.h" |    8 #include "testing/gtest/include/gtest/gtest.h" | 
|    9 #include "webkit/browser/appcache/appcache.h" |    9 #include "webkit/browser/appcache/appcache.h" | 
|   10 #include "webkit/browser/appcache/appcache_group.h" |   10 #include "webkit/browser/appcache/appcache_group.h" | 
|   11 #include "webkit/browser/appcache/appcache_host.h" |   11 #include "webkit/browser/appcache/appcache_host.h" | 
|   12 #include "webkit/browser/appcache/appcache_update_job.h" |   12 #include "webkit/browser/appcache/appcache_update_job.h" | 
|   13 #include "webkit/browser/appcache/mock_appcache_service.h" |   13 #include "webkit/browser/appcache/mock_appcache_service.h" | 
|   14 #include "webkit/common/appcache/appcache_interfaces.h" |   14 #include "webkit/common/appcache/appcache_interfaces.h" | 
|   15  |   15  | 
|   16 namespace { |   16 namespace { | 
|   17  |   17  | 
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  293   EXPECT_TRUE(group->FindObserver(&host, group->observers_)); |  293   EXPECT_TRUE(group->FindObserver(&host, group->observers_)); | 
|  294  |  294  | 
|  295   // Delete update to cause it to complete. Verify host is notified. |  295   // Delete update to cause it to complete. Verify host is notified. | 
|  296   delete group->update_job_; |  296   delete group->update_job_; | 
|  297   EXPECT_EQ(AppCacheGroup::IDLE, group->update_status_); |  297   EXPECT_EQ(AppCacheGroup::IDLE, group->update_status_); | 
|  298   EXPECT_TRUE(group->restart_update_task_.IsCancelled()); |  298   EXPECT_TRUE(group->restart_update_task_.IsCancelled()); | 
|  299   EXPECT_TRUE(host.update_completed_); |  299   EXPECT_TRUE(host.update_completed_); | 
|  300 } |  300 } | 
|  301  |  301  | 
|  302 }  // namespace appcache |  302 }  // namespace appcache | 
| OLD | NEW |