OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <stdint.h> |
| 6 |
5 #include <queue> | 7 #include <queue> |
6 #include <utility> | 8 #include <utility> |
7 | 9 |
| 10 #include "base/macros.h" |
8 #include "device/serial/data_source_sender.h" | 11 #include "device/serial/data_source_sender.h" |
9 #include "device/serial/data_stream.mojom.h" | 12 #include "device/serial/data_stream.mojom.h" |
10 #include "extensions/renderer/api_test_base.h" | 13 #include "extensions/renderer/api_test_base.h" |
11 #include "gin/dictionary.h" | 14 #include "gin/dictionary.h" |
12 #include "gin/wrappable.h" | 15 #include "gin/wrappable.h" |
13 #include "grit/extensions_renderer_resources.h" | 16 #include "grit/extensions_renderer_resources.h" |
14 | 17 |
15 namespace extensions { | 18 namespace extensions { |
16 | 19 |
17 class DataReceiverFactory : public gin::Wrappable<DataReceiverFactory> { | 20 class DataReceiverFactory : public gin::Wrappable<DataReceiverFactory> { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 data_to_send_.push("a"); | 174 data_to_send_.push("a"); |
172 RunTest("data_receiver_unittest.js", "testSerializeDuringReceive"); | 175 RunTest("data_receiver_unittest.js", "testSerializeDuringReceive"); |
173 } | 176 } |
174 | 177 |
175 TEST_F(DataReceiverTest, SerializeAfterClose) { | 178 TEST_F(DataReceiverTest, SerializeAfterClose) { |
176 data_to_send_.push("a"); | 179 data_to_send_.push("a"); |
177 RunTest("data_receiver_unittest.js", "testSerializeAfterClose"); | 180 RunTest("data_receiver_unittest.js", "testSerializeAfterClose"); |
178 } | 181 } |
179 | 182 |
180 } // namespace extensions | 183 } // namespace extensions |
OLD | NEW |