| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |