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

Unified Diff: base/debug/trace_event_unittest.h

Issue 10828326: Fix TraceEventTestFixture flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sharing HighResSleepForTraceTest between tests Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: base/debug/trace_event_unittest.h
diff --git a/base/test/mock_devices_changed_observer.cc b/base/debug/trace_event_unittest.h
similarity index 53%
copy from base/test/mock_devices_changed_observer.cc
copy to base/debug/trace_event_unittest.h
index c05f26a61382ddbbe2429a70f6490554917cff3b..3b570e1ca26752d15a4f10ac7a163ffacaba5e44 100644
--- a/base/test/mock_devices_changed_observer.cc
+++ b/base/debug/trace_event_unittest.h
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/test/mock_devices_changed_observer.h"
+#include "base/time.h"
namespace base {
+namespace debug {
-MockDevicesChangedObserver::MockDevicesChangedObserver() {
-}
-
-MockDevicesChangedObserver::~MockDevicesChangedObserver() {
-}
+// Sleep until HighResNow has advanced by at least |elapsed|.
+void HighResSleepForTraceTest(base::TimeDelta elapsed);
+} // namespace debug
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698