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 "content/shell/renderer/test_runner/mock_web_midi_accessor.h" |
6 | 6 |
7 #include "content/shell/renderer/test_runner/test_interfaces.h" | 7 #include "content/shell/renderer/test_runner/test_interfaces.h" |
8 #include "content/shell/renderer/test_runner/test_runner.h" | 8 #include "content/shell/renderer/test_runner/test_runner.h" |
9 #include "content/shell/renderer/test_runner/web_test_delegate.h" | 9 #include "content/shell/renderer/test_runner/web_test_delegate.h" |
10 #include "content/shell/renderer/test_runner/web_test_runner.h" | 10 #include "content/shell/renderer/test_runner/web_test_runner.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 } | 42 } |
43 | 43 |
44 MockWebMIDIAccessor::~MockWebMIDIAccessor() { | 44 MockWebMIDIAccessor::~MockWebMIDIAccessor() { |
45 } | 45 } |
46 | 46 |
47 void MockWebMIDIAccessor::startSession() { | 47 void MockWebMIDIAccessor::startSession() { |
48 // Add a mock input and output port. | 48 // Add a mock input and output port. |
49 client_->didAddInputPort("MockInputID", | 49 client_->didAddInputPort("MockInputID", |
50 "MockInputManufacturer", | 50 "MockInputManufacturer", |
51 "MockInputName", | 51 "MockInputName", |
52 "MockInputVersion"); | 52 "MockInputVersion", |
53 true); | |
tkent
2014/10/20 05:59:33
literal bool argument is not good for code readabi
Takashi Toyoshima
2014/10/20 06:41:29
Done.
| |
53 client_->didAddOutputPort("MockOutputID", | 54 client_->didAddOutputPort("MockOutputID", |
54 "MockOutputManufacturer", | 55 "MockOutputManufacturer", |
55 "MockOutputName", | 56 "MockOutputName", |
56 "MockOutputVersion"); | 57 "MockOutputVersion", |
58 true); | |
57 interfaces_->GetDelegate()->PostTask(new DidStartSessionTask( | 59 interfaces_->GetDelegate()->PostTask(new DidStartSessionTask( |
58 this, client_, interfaces_->GetTestRunner()->midiAccessorResult())); | 60 this, client_, interfaces_->GetTestRunner()->midiAccessorResult())); |
59 } | 61 } |
60 | 62 |
61 } // namespace content | 63 } // namespace content |
OLD | NEW |