summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/asynchronous_policy_test_base.cc
blob: 68887feebf221f94768ddc7be90a8c276574d06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2011 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/policy/asynchronous_policy_test_base.h"

using content::BrowserThread;

namespace policy {

ProviderDelegateMock::ProviderDelegateMock()
    : AsynchronousPolicyProvider::Delegate() {}

ProviderDelegateMock::~ProviderDelegateMock() {}

AsynchronousPolicyTestBase::AsynchronousPolicyTestBase()
    : ui_thread_(BrowserThread::UI, &loop_),
      file_thread_(BrowserThread::FILE, &loop_) {}

AsynchronousPolicyTestBase::~AsynchronousPolicyTestBase() {}

void AsynchronousPolicyTestBase::TearDown() {
  loop_.RunAllPending();
}

}  // namespace policy