OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ |
6 #define CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ | 6 #define CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
10 #include "chrome/browser/policy/asynchronous_policy_provider.h" | 11 #include "chrome/browser/policy/asynchronous_policy_provider.h" |
11 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace policy { | 16 namespace policy { |
16 | 17 |
17 // A delegate for testing that can feed arbitrary information to the loader. | 18 // A delegate for testing that can feed arbitrary information to the loader. |
18 class ProviderDelegateMock : public AsynchronousPolicyProvider::Delegate { | 19 class ProviderDelegateMock : public AsynchronousPolicyProvider::Delegate { |
(...skipping 26 matching lines...) Expand all Loading... |
45 private: | 46 private: |
46 BrowserThread ui_thread_; | 47 BrowserThread ui_thread_; |
47 BrowserThread file_thread_; | 48 BrowserThread file_thread_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(AsynchronousPolicyTestBase); | 50 DISALLOW_COPY_AND_ASSIGN(AsynchronousPolicyTestBase); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace policy | 53 } // namespace policy |
53 | 54 |
54 #endif // CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ | 55 #endif // CHROME_BROWSER_POLICY_ASYNCHRONOUS_POLICY_TEST_BASE_H_ |
OLD | NEW |