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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 2434583002: Mojofy unittests: ServiceWorkerVersionTest (Closed)
Patch Set: Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 return external_request_uuid_to_request_id_.size(); 406 return external_request_uuid_to_request_id_.size();
407 } 407 }
408 408
409 private: 409 private:
410 friend class base::RefCounted<ServiceWorkerVersion>; 410 friend class base::RefCounted<ServiceWorkerVersion>;
411 friend class ServiceWorkerMetrics; 411 friend class ServiceWorkerMetrics;
412 friend class ServiceWorkerReadFromCacheJobTest; 412 friend class ServiceWorkerReadFromCacheJobTest;
413 friend class ServiceWorkerStallInStoppingTest; 413 friend class ServiceWorkerStallInStoppingTest;
414 friend class ServiceWorkerURLRequestJobTest; 414 friend class ServiceWorkerURLRequestJobTest;
415 friend class ServiceWorkerVersionBrowserTest; 415 friend class ServiceWorkerVersionBrowserTest;
416 friend class ServiceWorkerVersionTest; 416 friend class ServiceWorkerVersionTestP;
417 417
418 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 418 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
419 ActivateWaitingVersion); 419 ActivateWaitingVersion);
420 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 420 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
421 FallbackWithNoFetchHandler); 421 FallbackWithNoFetchHandler);
422 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout); 422 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, IdleTimeout);
423 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); 423 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, SetDevToolsAttached);
424 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_FreshWorker); 424 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, StaleUpdate_FreshWorker);
425 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 425 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP,
426 StaleUpdate_NonActiveWorker); 426 StaleUpdate_NonActiveWorker);
427 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_StartWorker); 427 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, StaleUpdate_StartWorker);
428 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StaleUpdate_RunningWorker); 428 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP,
429 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 429 StaleUpdate_RunningWorker);
430 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP,
430 StaleUpdate_DoNotDeferTimer); 431 StaleUpdate_DoNotDeferTimer);
431 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestTimeout); 432 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, RequestTimeout);
432 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerFailToStartTest, Timeout); 433 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerFailToStartTest, Timeout);
433 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, 434 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest,
434 TimeoutStartingWorker); 435 TimeoutStartingWorker);
435 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, 436 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest,
436 TimeoutWorkerInEvent); 437 TimeoutWorkerInEvent);
437 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenStart); 438 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenStart);
438 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenRestart); 439 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenRestart);
439 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 440 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP,
440 RegisterForeignFetchScopes); 441 RegisterForeignFetchScopes);
441 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, RequestCustomizedTimeout); 442 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, RequestCustomizedTimeout);
442 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, 443 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP,
443 RequestCustomizedTimeoutKill); 444 RequestCustomizedTimeoutKill);
444 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, MixedRequestTimeouts); 445 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTestP, MixedRequestTimeouts);
445 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerURLRequestJobTest, EarlyResponse); 446 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerURLRequestJobTest, EarlyResponse);
446 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerURLRequestJobTest, CancelRequest); 447 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerURLRequestJobTest, CancelRequest);
447 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerActivationTest, SkipWaiting); 448 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerActivationTest, SkipWaiting);
448 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerActivationTest, 449 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerActivationTest,
449 SkipWaitingWithInflightRequest); 450 SkipWaitingWithInflightRequest);
450 451
451 class Metrics; 452 class Metrics;
452 class PingController; 453 class PingController;
453 454
454 struct RequestInfo { 455 struct RequestInfo {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 888
888 // At this point |this| can have been deleted, so don't do anything other 889 // At this point |this| can have been deleted, so don't do anything other
889 // than returning. 890 // than returning.
890 891
891 return true; 892 return true;
892 } 893 }
893 894
894 } // namespace content 895 } // namespace content
895 896
896 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 897 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698