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

Side by Side Diff: webkit/appcache/appcache_update_job_unittest.cc

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « views/widget/drop_target_gtk.h ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 "Content-type: text/cache-manifest\0" 404 "Content-type: text/cache-manifest\0"
405 "\0"; 405 "\0";
406 return std::string(headers, arraysize(headers)); 406 return std::string(headers, arraysize(headers));
407 } 407 }
408 408
409 static std::string data() { 409 static std::string data() {
410 return std::string("CACHE MANIFEST\r" 410 return std::string("CACHE MANIFEST\r"
411 "http://retry\r"); // must be same as kRetryUrl 411 "http://retry\r"); // must be same as kRetryUrl
412 } 412 }
413 413
414 explicit RetryRequestTestJob(net::URLRequest* request, 414 RetryRequestTestJob(net::URLRequest* request,
415 const std::string& headers, 415 const std::string& headers,
416 int response_code) 416 int response_code)
417 : net::URLRequestTestJob(request, headers, data(), true), 417 : net::URLRequestTestJob(request, headers, data(), true),
418 response_code_(response_code) { 418 response_code_(response_code) {
419 } 419 }
420 420
421 int response_code_; 421 int response_code_;
422 422
423 static int num_requests_; 423 static int num_requests_;
424 static int num_retries_; 424 static int num_retries_;
425 static RetryHeader retry_after_; 425 static RetryHeader retry_after_;
426 static int expected_requests_; 426 static int expected_requests_;
(...skipping 3118 matching lines...) Expand 10 before | Expand all | Expand 10 after
3545 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsDeniedTest); 3545 RunTestOnIOThread(&AppCacheUpdateJobTest::CrossOriginHttpsDeniedTest);
3546 } 3546 }
3547 3547
3548 } // namespace appcache 3548 } // namespace appcache
3549 3549
3550 // AppCacheUpdateJobTest is expected to always live longer than the 3550 // AppCacheUpdateJobTest is expected to always live longer than the
3551 // runnable methods. This lets us call NewRunnableMethod on its instances. 3551 // runnable methods. This lets us call NewRunnableMethod on its instances.
3552 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheUpdateJobTest); 3552 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheUpdateJobTest);
3553 DISABLE_RUNNABLE_METHOD_REFCOUNT( 3553 DISABLE_RUNNABLE_METHOD_REFCOUNT(
3554 appcache::AppCacheUpdateJobTest::MockAppCachePolicy); 3554 appcache::AppCacheUpdateJobTest::MockAppCachePolicy);
OLDNEW
« no previous file with comments | « views/widget/drop_target_gtk.h ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698