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 #include <vector> | 5 #include <vector> |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "content/public/test/test_browser_thread_bundle.h" | 8 #include "content/public/test/test_browser_thread_bundle.h" |
8 #include "extensions/browser/api/webcam_private/visca_webcam.h" | 9 #include "extensions/browser/api/webcam_private/visca_webcam.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 namespace extensions { | 12 namespace extensions { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 class TestSerialConnection : public SerialConnection { | 16 class TestSerialConnection : public SerialConnection { |
16 public: | 17 public: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 base::Bind(&SetPTZExpectations::OnCallback, | 132 base::Bind(&SetPTZExpectations::OnCallback, |
132 base::Owned(new SetPTZExpectations(true))); | 133 base::Owned(new SetPTZExpectations(true))); |
133 serial_connection()->SetReceiveBuffer( | 134 serial_connection()->SetReceiveBuffer( |
134 CHAR_VECTOR_FROM_ARRAY(kSetZoomResponse)); | 135 CHAR_VECTOR_FROM_ARRAY(kSetZoomResponse)); |
135 webcam()->SetZoom(0x6253, send_callback); | 136 webcam()->SetZoom(0x6253, send_callback); |
136 serial_connection()->CheckSendBufferAndClear( | 137 serial_connection()->CheckSendBufferAndClear( |
137 CHAR_VECTOR_FROM_ARRAY(kSetZoomCommand)); | 138 CHAR_VECTOR_FROM_ARRAY(kSetZoomCommand)); |
138 } | 139 } |
139 | 140 |
140 } // namespace extensions | 141 } // namespace extensions |
OLD | NEW |