blob: 2d9dbde11ebb5df79f303a6e42a1bf7df38d360a [file] [log] [blame]
nsatragnodb7b65c642016-02-16 20:14:021// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/test/mock_background_sync_controller.h"
6
7namespace content {
8
9void MockBackgroundSyncController::NotifyBackgroundSyncRegistered(
10 const GURL& origin) {
11 registration_count_ += 1;
12 registration_origin_ = origin;
13}
14
15void MockBackgroundSyncController::RunInBackground(bool enabled,
16 int64_t min_ms) {
17 run_in_background_count_ += 1;
18 run_in_background_enabled_ = enabled;
19 run_in_background_min_ms_ = min_ms;
20}
21
22void MockBackgroundSyncController::GetParameterOverrides(
23 BackgroundSyncParameters* parameters) const {
24 *parameters = background_sync_parameters_;
25}
26
27} // namespace content