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

Side by Side Diff: content/browser/background_sync/background_sync_browsertest.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: rebase Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 *result_out = result; 65 *result_out = result;
66 task_runner->PostTask(FROM_HERE, quit); 66 task_runner->PostTask(FROM_HERE, quit);
67 } 67 }
68 68
69 void OneShotPendingDidGetSyncRegistration( 69 void OneShotPendingDidGetSyncRegistration(
70 const base::Callback<void(bool)>& callback, 70 const base::Callback<void(bool)>& callback,
71 BackgroundSyncStatus error_type, 71 BackgroundSyncStatus error_type,
72 scoped_ptr<BackgroundSyncRegistrationHandle> registration_handle) { 72 scoped_ptr<BackgroundSyncRegistrationHandle> registration_handle) {
73 ASSERT_EQ(BACKGROUND_SYNC_STATUS_OK, error_type); 73 ASSERT_EQ(BACKGROUND_SYNC_STATUS_OK, error_type);
74 callback.Run(registration_handle->sync_state() == 74 callback.Run(registration_handle->sync_state() ==
75 BACKGROUND_SYNC_STATE_PENDING); 75 BackgroundSyncState::PENDING);
76 } 76 }
77 77
78 void OneShotPendingDidGetSWRegistration( 78 void OneShotPendingDidGetSWRegistration(
79 const scoped_refptr<BackgroundSyncContext> sync_context, 79 const scoped_refptr<BackgroundSyncContext> sync_context,
80 const std::string& tag, 80 const std::string& tag,
81 const base::Callback<void(bool)>& callback, 81 const base::Callback<void(bool)>& callback,
82 ServiceWorkerStatusCode status, 82 ServiceWorkerStatusCode status,
83 const scoped_refptr<ServiceWorkerRegistration>& registration) { 83 const scoped_refptr<ServiceWorkerRegistration>& registration) {
84 ASSERT_EQ(SERVICE_WORKER_OK, status); 84 ASSERT_EQ(SERVICE_WORKER_OK, status);
85 int64_t service_worker_id = registration->id(); 85 int64_t service_worker_id = registration->id();
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 GURL url = alt_server.GetURL(kRegisterSyncURL); 657 GURL url = alt_server.GetURL(kRegisterSyncURL);
658 EXPECT_TRUE( 658 EXPECT_TRUE(
659 RunScript(BuildScriptString("registerOneShotFromCrossOriginServiceWorker", 659 RunScript(BuildScriptString("registerOneShotFromCrossOriginServiceWorker",
660 url.spec()), 660 url.spec()),
661 &script_result)); 661 &script_result));
662 EXPECT_EQ(BuildExpectedResult("worker", "failed to register sync"), 662 EXPECT_EQ(BuildExpectedResult("worker", "failed to register sync"),
663 script_result); 663 script_result);
664 } 664 }
665 665
666 } // namespace content 666 } // namespace content
OLDNEW
« no previous file with comments | « components/web_view/web_view_impl.cc ('k') | content/browser/background_sync/background_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698