summaryrefslogtreecommitdiffstats
path: root/base/event_recorder_stubs.cc
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 16:33:29 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 16:33:29 +0000
commit238a20d1987f93f79895a8f8710ac9912e8d60a0 (patch)
treee6650a8c0e4eeeee8f98d6d3b3a6f335e8545d15 /base/event_recorder_stubs.cc
parent7c19b87b028f32ccb4664699fc3386f1ba97d083 (diff)
downloadchromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.zip
chromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.tar.gz
chromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.tar.bz2
Unfork test_shell_main:
- remove Mac version - move platform-specific operations into PlatformDelegate and remove #ifdefs - add event recorder link stubs for use by platforms that don't have event recording working yet Notes: There's a bunch of stuff in test_shell_{gtk,mac,win} that should also be pulled into the platform delegate so that the TestShell class can also be unforked, but those can be worked on independently per platform after this refactoring. Review URL: http://codereview.chromium.org/18451 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/event_recorder_stubs.cc')
-rw-r--r--base/event_recorder_stubs.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/base/event_recorder_stubs.cc b/base/event_recorder_stubs.cc
new file mode 100644
index 0000000..9499c75
--- /dev/null
+++ b/base/event_recorder_stubs.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/event_recorder.h"
+
+// This file implements a link stub for EventRecorder that can be used on
+// platforms that don't have a working EventRecorder implementation.
+
+namespace base {
+
+EventRecorder* EventRecorder::current_; // Our singleton.
+
+bool EventRecorder::StartRecording(const std::wstring& filename) {
+ return true;
+}
+
+void EventRecorder::StopRecording() {
+}
+
+bool EventRecorder::StartPlayback(const std::wstring& filename) {
+ return false;
+}
+
+void EventRecorder::StopPlayback() {
+}
+
+} // namespace