blob: de93d91a2bc2eb9c4ef2859f557729566345e6fe [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/android_sms/fake_connection_establisher.h"
namespace chromeos {
namespace android_sms {
FakeConnectionEstablisher::FakeConnectionEstablisher() = default;
FakeConnectionEstablisher::~FakeConnectionEstablisher() = default;
void FakeConnectionEstablisher::EstablishConnection(
const GURL& url,
ConnectionMode connection_mode,
content::ServiceWorkerContext* service_worker_context_) {
establish_connection_calls_.emplace_back(url, connection_mode,
service_worker_context_);
}
void FakeConnectionEstablisher::TearDownConnection(
const GURL& url,
content::ServiceWorkerContext* service_worker_context_) {
tear_down_connection_calls_.emplace_back(url, service_worker_context_);
}
} // namespace android_sms
} // namespace chromeos