OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ |
7 #pragma once | |
8 | 7 |
9 #include <set> | 8 #include <set> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
13 | 12 |
14 FORWARD_DECLARE_TEST(SerialPortEnumeratorTest, ValidPortNamePatterns); | 13 FORWARD_DECLARE_TEST(SerialPortEnumeratorTest, ValidPortNamePatterns); |
15 FORWARD_DECLARE_TEST(SerialPortEnumeratorTest, InvalidPortNamePatterns); | 14 FORWARD_DECLARE_TEST(SerialPortEnumeratorTest, InvalidPortNamePatterns); |
16 | 15 |
17 namespace extensions { | 16 namespace extensions { |
(...skipping 16 matching lines...) Expand all Loading... |
34 // Returns a StringSet of patterns to be used with MatchPattern. | 33 // Returns a StringSet of patterns to be used with MatchPattern. |
35 static StringSet GenerateValidPatterns(); | 34 static StringSet GenerateValidPatterns(); |
36 | 35 |
37 FRIEND_TEST_ALL_PREFIXES(::SerialPortEnumeratorTest, ValidPortNamePatterns); | 36 FRIEND_TEST_ALL_PREFIXES(::SerialPortEnumeratorTest, ValidPortNamePatterns); |
38 FRIEND_TEST_ALL_PREFIXES(::SerialPortEnumeratorTest, InvalidPortNamePatterns); | 37 FRIEND_TEST_ALL_PREFIXES(::SerialPortEnumeratorTest, InvalidPortNamePatterns); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace extensions | 40 } // namespace extensions |
42 | 41 |
43 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ | 42 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_PORT_ENUMERATOR_H_ |
OLD | NEW |