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

Unified Diff: content/browser/service_worker/service_worker_version_unittest.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_version_unittest.cc
diff --git a/content/browser/service_worker/service_worker_version_unittest.cc b/content/browser/service_worker/service_worker_version_unittest.cc
index 649d5634f9f96db310f30c8def2b0042b41925ad..423d7e2062932ea204904331de3cc615294fe266 100644
--- a/content/browser/service_worker/service_worker_version_unittest.cc
+++ b/content/browser/service_worker/service_worker_version_unittest.cc
@@ -80,7 +80,7 @@ class MockBackgroundSyncServiceClient : public BackgroundSyncServiceClient {
void RunCallback() {
EXPECT_FALSE(callback_.is_null());
- callback_.Run(SERVICE_WORKER_EVENT_STATUS_ABORTED);
+ callback_.Run(ServiceWorkerEventStatus::ABORTED);
}
private:
@@ -812,7 +812,7 @@ TEST_F(ServiceWorkerVersionTest, RequestCustomizedTimeout) {
// Create a sync request that should expire Now().
version_->DispatchSyncEvent(0 /* sync handle id */,
- BACKGROUND_SYNC_EVENT_LAST_CHANCE_IS_LAST_CHANCE,
+ BackgroundSyncEventLastChance::IS_LAST_CHANCE,
base::TimeDelta(), /* max duration */
base::Bind(&ReceiveSyncStatus, &status));
base::RunLoop().RunUntilIdle();
@@ -836,7 +836,7 @@ TEST_F(ServiceWorkerWaitForeverInFetchTest, DISABLED_MixedRequestTimeouts) {
base::Bind(&ReceiveFetchResult, &fetch_status));
// Create a sync request that should expire Now().
version_->DispatchSyncEvent(0 /* sync handle id */,
- BACKGROUND_SYNC_EVENT_LAST_CHANCE_IS_LAST_CHANCE,
+ BackgroundSyncEventLastChance::IS_LAST_CHANCE,
base::TimeDelta(), /* max duration */
base::Bind(&ReceiveSyncStatus, &sync_status));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698