| Index: content/test/layout_tests/runner/MockWebAudioDevice.h
|
| diff --git a/third_party/tcmalloc/chromium/src/base/synchronization_profiling.h b/content/test/layout_tests/runner/MockWebAudioDevice.h
|
| similarity index 63%
|
| copy from third_party/tcmalloc/chromium/src/base/synchronization_profiling.h
|
| copy to content/test/layout_tests/runner/MockWebAudioDevice.h
|
| index cf02c218a111806189f71f7b528a83b5ceb164a4..f72ccf6f40c455ea5c5253e80d91927ab05a76c1 100644
|
| --- a/third_party/tcmalloc/chromium/src/base/synchronization_profiling.h
|
| +++ b/content/test/layout_tests/runner/MockWebAudioDevice.h
|
| @@ -1,5 +1,9 @@
|
| -/* Copyright (c) 2010, Google Inc.
|
| - * All rights reserved.
|
| +// Copyright 2013 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.
|
| +
|
| +/*
|
| + * Copyright (C) 2013 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,25 +30,30 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| - *
|
| - * ---
|
| - * Author: Chris Ruemmler
|
| */
|
|
|
| -#ifndef BASE_AUXILIARY_SYNCHRONIZATION_PROFILING_H_
|
| -#define BASE_AUXILIARY_SYNCHRONIZATION_PROFILING_H_
|
| +#ifndef MockWebAudioDevice_h
|
| +#define MockWebAudioDevice_h
|
| +
|
| +#include "content/test/layout_tests/runner/TestCommon.h"
|
| +#include "third_party/WebKit/public/platform/WebAudioDevice.h"
|
| +#include "third_party/WebKit/public/platform/WebNonCopyable.h"
|
| +
|
| +namespace WebTestRunner {
|
| +
|
| +class MockWebAudioDevice : public blink::WebAudioDevice, public blink::WebNonCopyable {
|
| +public:
|
| + explicit MockWebAudioDevice(double sampleRate);
|
| + virtual ~MockWebAudioDevice();
|
|
|
| -#include "base/basictypes.h"
|
| + virtual void start();
|
| + virtual void stop();
|
| + virtual double sampleRate();
|
|
|
| -namespace base {
|
| +private:
|
| + double m_sampleRate;
|
| +};
|
|
|
| -// We can do contention-profiling of SpinLocks, but the code is in
|
| -// mutex.cc, which is not always linked in with spinlock. Hence we
|
| -// provide a weak definition, which are used if mutex.cc isn't linked in.
|
| +} // namespace WebTestRunner
|
|
|
| -// Submit the number of cycles the spinlock spent contending.
|
| -ATTRIBUTE_WEAK extern void SubmitSpinLockProfileData(const void *, int64);
|
| -extern void SubmitSpinLockProfileData(const void *contendedlock,
|
| - int64 wait_cycles) {}
|
| -}
|
| -#endif // BASE_AUXILIARY_SYNCHRONIZATION_PROFILING_H_
|
| +#endif // MockWebAudioDevice_h
|
|
|