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

Side by Side Diff: content/test/mock_background_sync_controller.h

Issue 1771743002: Move geolocation and permission mojoms into WebKit/public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_ 5 #ifndef CONTENT_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_
6 #define CONTENT_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_ 6 #define CONTENT_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/browser/background_sync_controller.h" 12 #include "content/public/browser/background_sync_controller.h"
13 #include "content/public/browser/background_sync_parameters.h" 13 #include "content/public/browser/background_sync_parameters.h"
14 #include "content/public/common/permission_status.mojom.h" 14 #include "third_party/WebKit/public/platform/modules/permissions/permission.mojo m.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 // Mocks a BackgroundSyncController, tracking state for use in tests. 19 // Mocks a BackgroundSyncController, tracking state for use in tests.
20 class MockBackgroundSyncController : public BackgroundSyncController { 20 class MockBackgroundSyncController : public BackgroundSyncController {
21 public: 21 public:
22 MockBackgroundSyncController() = default; 22 MockBackgroundSyncController() = default;
23 ~MockBackgroundSyncController() override = default; 23 ~MockBackgroundSyncController() override = default;
24 24
(...skipping 20 matching lines...) Expand all
45 bool run_in_background_enabled_ = true; 45 bool run_in_background_enabled_ = true;
46 int64_t run_in_background_min_ms_ = 0; 46 int64_t run_in_background_min_ms_ = 0;
47 BackgroundSyncParameters background_sync_parameters_; 47 BackgroundSyncParameters background_sync_parameters_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(MockBackgroundSyncController); 49 DISALLOW_COPY_AND_ASSIGN(MockBackgroundSyncController);
50 }; 50 };
51 51
52 } // namespace content 52 } // namespace content
53 53
54 #endif // CONTENT_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_ 54 #endif // CONTENT_TEST_MOCK_BACKGROUND_SYNC_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698