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

Side by Side Diff: Source/testing/runner/MockWebRTCDataChannelHandler.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 #include "public/platform/WebNonCopyable.h" 29 #include "public/platform/WebNonCopyable.h"
30 #include "public/platform/WebRTCDataChannelHandler.h" 30 #include "public/platform/WebRTCDataChannelHandler.h"
31 #include "public/platform/WebRTCDataChannelInit.h" 31 #include "public/platform/WebRTCDataChannelInit.h"
32 #include "public/platform/WebString.h" 32 #include "public/platform/WebString.h"
33 #include "public/testing/WebTask.h" 33 #include "public/testing/WebTask.h"
34 34
35 namespace WebTestRunner { 35 namespace WebTestRunner {
36 36
37 class WebTestDelegate; 37 class WebTestDelegate;
38 38
39 class MockWebRTCDataChannelHandler : public WebKit::WebRTCDataChannelHandler, pu blic WebKit::WebNonCopyable { 39 class MockWebRTCDataChannelHandler : public blink::WebRTCDataChannelHandler, pub lic blink::WebNonCopyable {
40 public: 40 public:
41 MockWebRTCDataChannelHandler(WebKit::WebString label, const WebKit::WebRTCDa taChannelInit&, WebTestDelegate*); 41 MockWebRTCDataChannelHandler(blink::WebString label, const blink::WebRTCData ChannelInit&, WebTestDelegate*);
42 42
43 virtual void setClient(WebKit::WebRTCDataChannelHandlerClient*) OVERRIDE; 43 virtual void setClient(blink::WebRTCDataChannelHandlerClient*) OVERRIDE;
44 virtual WebKit::WebString label() OVERRIDE { return m_label; } 44 virtual blink::WebString label() OVERRIDE { return m_label; }
45 virtual bool isReliable() OVERRIDE { return m_reliable; } 45 virtual bool isReliable() OVERRIDE { return m_reliable; }
46 virtual bool ordered() const OVERRIDE; 46 virtual bool ordered() const OVERRIDE;
47 virtual unsigned short maxRetransmitTime() const OVERRIDE; 47 virtual unsigned short maxRetransmitTime() const OVERRIDE;
48 virtual unsigned short maxRetransmits() const OVERRIDE; 48 virtual unsigned short maxRetransmits() const OVERRIDE;
49 virtual WebKit::WebString protocol() const OVERRIDE; 49 virtual blink::WebString protocol() const OVERRIDE;
50 virtual bool negotiated() const OVERRIDE; 50 virtual bool negotiated() const OVERRIDE;
51 virtual unsigned short id() const OVERRIDE; 51 virtual unsigned short id() const OVERRIDE;
52 virtual unsigned long bufferedAmount() OVERRIDE; 52 virtual unsigned long bufferedAmount() OVERRIDE;
53 virtual bool sendStringData(const WebKit::WebString&) OVERRIDE; 53 virtual bool sendStringData(const blink::WebString&) OVERRIDE;
54 virtual bool sendRawData(const char*, size_t) OVERRIDE; 54 virtual bool sendRawData(const char*, size_t) OVERRIDE;
55 virtual void close() OVERRIDE; 55 virtual void close() OVERRIDE;
56 56
57 // WebTask related methods 57 // WebTask related methods
58 WebTaskList* taskList() { return &m_taskList; } 58 WebTaskList* taskList() { return &m_taskList; }
59 59
60 private: 60 private:
61 MockWebRTCDataChannelHandler(); 61 MockWebRTCDataChannelHandler();
62 62
63 WebKit::WebRTCDataChannelHandlerClient* m_client; 63 blink::WebRTCDataChannelHandlerClient* m_client;
64 WebKit::WebString m_label; 64 blink::WebString m_label;
65 WebKit::WebRTCDataChannelInit m_init; 65 blink::WebRTCDataChannelInit m_init;
66 bool m_reliable; 66 bool m_reliable;
67 WebTaskList m_taskList; 67 WebTaskList m_taskList;
68 WebTestDelegate* m_delegate; 68 WebTestDelegate* m_delegate;
69 }; 69 };
70 70
71 } 71 }
72 72
73 #endif // MockWebRTCDataChannelHandler_h 73 #endif // MockWebRTCDataChannelHandler_h
OLDNEW
« no previous file with comments | « Source/testing/runner/MockWebRTCDTMFSenderHandler.cpp ('k') | Source/testing/runner/MockWebRTCDataChannelHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698