Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: content/shell/renderer/test_runner/MockWebMIDIAccessor.cpp

Issue 185263006: Move TestRunner from CppVariable to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bug fix: text_runner -> test_runner in gypi :-( Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/TestInterfaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/MockWebMIDIAccessor.h" 5 #include "content/shell/renderer/test_runner/MockWebMIDIAccessor.h"
6 6
7 #include "content/shell/renderer/test_runner/TestInterfaces.h" 7 #include "content/shell/renderer/test_runner/TestInterfaces.h"
8 #include "content/shell/renderer/test_runner/TestRunner.h"
9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
10 #include "content/shell/renderer/test_runner/WebTestRunner.h" 9 #include "content/shell/renderer/test_runner/WebTestRunner.h"
10 #include "content/shell/renderer/test_runner/test_runner.h"
11 #include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h" 11 #include "third_party/WebKit/public/platform/WebMIDIAccessorClient.h"
12 12
13 using namespace blink; 13 using namespace blink;
14 14
15 namespace { 15 namespace {
16 16
17 class DidStartSessionTask : public WebTestRunner::WebMethodTask<WebTestRunner::M ockWebMIDIAccessor> { 17 class DidStartSessionTask : public WebTestRunner::WebMethodTask<WebTestRunner::M ockWebMIDIAccessor> {
18 public: 18 public:
19 DidStartSessionTask(WebTestRunner::MockWebMIDIAccessor* object, blink::WebMI DIAccessorClient* client, bool result) 19 DidStartSessionTask(WebTestRunner::MockWebMIDIAccessor* object, blink::WebMI DIAccessorClient* client, bool result)
20 : WebMethodTask<WebTestRunner::MockWebMIDIAccessor>(object) 20 : WebMethodTask<WebTestRunner::MockWebMIDIAccessor>(object)
(...skipping 28 matching lines...) Expand all
49 49
50 void MockWebMIDIAccessor::startSession() 50 void MockWebMIDIAccessor::startSession()
51 { 51 {
52 // Add a mock input and output port. 52 // Add a mock input and output port.
53 m_client->didAddInputPort("MockInputID", "MockInputManufacturer", "MockInput Name", "MockInputVersion"); 53 m_client->didAddInputPort("MockInputID", "MockInputManufacturer", "MockInput Name", "MockInputVersion");
54 m_client->didAddOutputPort("MockOutputID", "MockOutputManufacturer", "MockOu tputName", "MockOutputVersion"); 54 m_client->didAddOutputPort("MockOutputID", "MockOutputManufacturer", "MockOu tputName", "MockOutputVersion");
55 m_interfaces->delegate()->postTask(new DidStartSessionTask(this, m_client, m _interfaces->testRunner()->midiAccessorResult())); 55 m_interfaces->delegate()->postTask(new DidStartSessionTask(this, m_client, m _interfaces->testRunner()->midiAccessorResult()));
56 } 56 }
57 57
58 } // namespace WebTestRunner 58 } // namespace WebTestRunner
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/TestInterfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698