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 "content/shell/renderer/test_runner/mock_web_midi_accessor.h" | 5 #include "components/test_runner/mock_web_midi_accessor.h" |
6 | 6 |
7 #include "content/shell/renderer/test_runner/test_interfaces.h" | 7 #include "components/test_runner/test_interfaces.h" |
8 #include "content/shell/renderer/test_runner/test_runner.h" | 8 #include "components/test_runner/test_runner.h" |
9 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 9 #include "components/test_runner/web_test_delegate.h" |
10 #include "content/shell/renderer/test_runner/web_test_runner.h" | 10 #include "components/test_runner/web_test_runner.h" |
11 #include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h" | 11 #include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class DidStartSessionTask : public WebMethodTask<MockWebMIDIAccessor> { | 17 class DidStartSessionTask : public WebMethodTask<MockWebMIDIAccessor> { |
18 public: | 18 public: |
19 DidStartSessionTask(MockWebMIDIAccessor* object, | 19 DidStartSessionTask(MockWebMIDIAccessor* object, |
20 blink::WebMIDIAccessorClient* client, | 20 blink::WebMIDIAccessorClient* client, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 client_->didAddOutputPort("MockOutputID", | 56 client_->didAddOutputPort("MockOutputID", |
57 "MockOutputManufacturer", | 57 "MockOutputManufacturer", |
58 "MockOutputName", | 58 "MockOutputName", |
59 "MockOutputVersion", | 59 "MockOutputVersion", |
60 state); | 60 state); |
61 interfaces_->GetDelegate()->PostTask(new DidStartSessionTask( | 61 interfaces_->GetDelegate()->PostTask(new DidStartSessionTask( |
62 this, client_, interfaces_->GetTestRunner()->midiAccessorResult())); | 62 this, client_, interfaces_->GetTestRunner()->midiAccessorResult())); |
63 } | 63 } |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
OLD | NEW |