OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ | 5 #ifndef MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ |
6 #define MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ | 6 #define MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" |
11 #include "base/scoped_native_library.h" | 12 #include "base/scoped_native_library.h" |
12 | 13 |
13 namespace media { | 14 namespace media { |
14 | 15 |
15 // This class loads the library containing External Clear Key. The library is | 16 // This class loads the library containing External Clear Key. The library is |
16 // loaded and initialized in the constructor, and unloaded in the destructor. | 17 // loaded and initialized in the constructor, and unloaded in the destructor. |
17 class ExternalClearKeyTestHelper { | 18 class ExternalClearKeyTestHelper { |
18 public: | 19 public: |
19 ExternalClearKeyTestHelper(); | 20 ExternalClearKeyTestHelper(); |
20 ~ExternalClearKeyTestHelper(); | 21 ~ExternalClearKeyTestHelper(); |
(...skipping 10 matching lines...) Expand all Loading... |
31 // Keep a reference to the loaded library. | 32 // Keep a reference to the loaded library. |
32 base::FilePath library_path_; | 33 base::FilePath library_path_; |
33 base::ScopedNativeLibrary library_; | 34 base::ScopedNativeLibrary library_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(ExternalClearKeyTestHelper); | 36 DISALLOW_COPY_AND_ASSIGN(ExternalClearKeyTestHelper); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace media | 39 } // namespace media |
39 | 40 |
40 #endif // MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ | 41 #endif // MEDIA_CDM_EXTERNAL_CLEAR_KEY_TEST_HELPER_H_ |
OLD | NEW |