Componentize VariationsService into //components/variations/service
[chromium-blink-merge.git] / components / gcm_driver / fake_gcm_client_factory.cc
blobd14fc846acb5d7ad5b7c96bb88d8b90aa2d7d3c7
1 // Copyright 2014 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.
5 #include "components/gcm_driver/fake_gcm_client_factory.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "base/sequenced_task_runner.h"
9 #include "components/gcm_driver/gcm_client.h"
11 namespace gcm {
13 FakeGCMClientFactory::FakeGCMClientFactory(
14 const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
15 const scoped_refptr<base::SequencedTaskRunner>& io_thread)
16 : ui_thread_(ui_thread),
17 io_thread_(io_thread) {
20 FakeGCMClientFactory::~FakeGCMClientFactory() {
23 scoped_ptr<GCMClient> FakeGCMClientFactory::BuildInstance() {
24 return scoped_ptr<GCMClient>(new FakeGCMClient(ui_thread_, io_thread_));
27 } // namespace gcm