Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: content/browser/appcache/appcache_update_job_unittest.cc

Issue 2228403003: content: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "content/browser/appcache/appcache_update_job.h" 5 #include "content/browser/appcache/appcache_update_job.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 3029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 3040
3041 void UpdateFinishedUnwound() { 3041 void UpdateFinishedUnwound() {
3042 EXPECT_EQ(AppCacheGroup::IDLE, group_->update_status()); 3042 EXPECT_EQ(AppCacheGroup::IDLE, group_->update_status());
3043 EXPECT_TRUE(group_->update_job() == NULL); 3043 EXPECT_TRUE(group_->update_job() == NULL);
3044 if (do_checks_after_update_finished_) 3044 if (do_checks_after_update_finished_)
3045 VerifyExpectations(); 3045 VerifyExpectations();
3046 3046
3047 // Clean up everything that was created on the IO thread. 3047 // Clean up everything that was created on the IO thread.
3048 protect_newest_cache_ = NULL; 3048 protect_newest_cache_ = NULL;
3049 group_ = NULL; 3049 group_ = NULL;
3050 STLDeleteContainerPointers(hosts_.begin(), hosts_.end()); 3050 base::STLDeleteContainerPointers(hosts_.begin(), hosts_.end());
3051 STLDeleteContainerPointers(frontends_.begin(), frontends_.end()); 3051 base::STLDeleteContainerPointers(frontends_.begin(), frontends_.end());
3052 response_infos_.clear(); 3052 response_infos_.clear();
3053 service_.reset(NULL); 3053 service_.reset(NULL);
3054 3054
3055 event_->Signal(); 3055 event_->Signal();
3056 } 3056 }
3057 3057
3058 void MakeService() { 3058 void MakeService() {
3059 service_.reset(new MockAppCacheService()); 3059 service_.reset(new MockAppCacheService());
3060 service_->set_request_context(io_thread_->request_context()); 3060 service_->set_request_context(io_thread_->request_context());
3061 } 3061 }
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
3725 3725
3726 TEST_F(AppCacheUpdateJobTest, CrossOriginHttpsSuccess) { 3726 TEST_F(AppCacheUpdateJobTest, CrossOriginHttpsSuccess) {
3727 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsSuccessTest); 3727 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsSuccessTest);
3728 } 3728 }
3729 3729
3730 TEST_F(AppCacheUpdateJobTest, CrossOriginHttpsDenied) { 3730 TEST_F(AppCacheUpdateJobTest, CrossOriginHttpsDenied) {
3731 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsDeniedTest); 3731 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsDeniedTest);
3732 } 3732 }
3733 3733
3734 } // namespace content 3734 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_update_job.cc ('k') | content/browser/background_sync/background_sync_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698