Index: webrtc/base/fakecpumonitor.h |
diff --git a/webrtc/examples/objc/AppRTCDemo/ios/main.m b/webrtc/base/fakecpumonitor.h |
similarity index 50% |
copy from webrtc/examples/objc/AppRTCDemo/ios/main.m |
copy to webrtc/base/fakecpumonitor.h |
index 00b83f7fd2f1cf5a7433cb388b4d39e589e4fb5e..c6ea0f2933cf1b647bb43a8907a50b70cf6f04a9 100644 |
--- a/webrtc/examples/objc/AppRTCDemo/ios/main.m |
+++ b/webrtc/base/fakecpumonitor.h |
@@ -8,13 +8,25 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#import <UIKit/UIKit.h> |
+#ifndef WEBRTC_BASE_FAKECPUMONITOR_H_ |
+#define WEBRTC_BASE_FAKECPUMONITOR_H_ |
-#import "ARDAppDelegate.h" |
+#include "webrtc/base/cpumonitor.h" |
-int main(int argc, char* argv[]) { |
- @autoreleasepool { |
- return UIApplicationMain( |
- argc, argv, nil, NSStringFromClass([ARDAppDelegate class])); |
+namespace rtc { |
+ |
+class FakeCpuMonitor : public rtc::CpuMonitor { |
+ public: |
+ explicit FakeCpuMonitor(Thread* thread) |
+ : CpuMonitor(thread) { |
+ } |
+ ~FakeCpuMonitor() { |
+ } |
+ |
+ virtual void OnMessage(rtc::Message* msg) { |
} |
-} |
+}; |
+ |
+} // namespace rtc |
+ |
+#endif // WEBRTC_BASE_FAKECPUMONITOR_H_ |