Home | History | Annotate | Download | only in policy
      1 // Copyright (c) 2011 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 "chrome/browser/policy/asynchronous_policy_test_base.h"
      6 
      7 #include "chrome/browser/policy/mock_configuration_policy_store.h"
      8 
      9 namespace policy {
     10 
     11 ProviderDelegateMock::ProviderDelegateMock()
     12     : AsynchronousPolicyProvider::Delegate() {}
     13 
     14 ProviderDelegateMock::~ProviderDelegateMock() {}
     15 
     16 AsynchronousPolicyTestBase::AsynchronousPolicyTestBase()
     17     : ui_thread_(BrowserThread::UI, &loop_),
     18       file_thread_(BrowserThread::FILE, &loop_) {}
     19 
     20 AsynchronousPolicyTestBase::~AsynchronousPolicyTestBase() {}
     21 
     22 void AsynchronousPolicyTestBase::SetUp() {
     23   delegate_.reset(new ProviderDelegateMock());
     24   store_.reset(new MockConfigurationPolicyStore);
     25 }
     26 
     27 void AsynchronousPolicyTestBase::TearDown() {
     28   loop_.RunAllPending();
     29 }
     30 
     31 }  // namespace policy
     32