blob: a776674e29d4def50a275571d9499bc025e2087b [file] [log] [blame]
// Copyright 2014 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 "ui/base/clipboard/clipboard.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(USE_AURA)
#include "ui/events/platform/platform_event_source.h"
namespace ui {
struct PlatformClipboardTraits {
#if defined(USE_AURA)
static std::unique_ptr<PlatformEventSource> GetEventSource() {
return PlatformEventSource::CreateDefault();
static Clipboard* Create() { return Clipboard::GetForCurrentThread(); }
static bool IsMusTest() { return false; }
static void Destroy(Clipboard* clipboard) {
ASSERT_EQ(Clipboard::GetForCurrentThread(), clipboard);
typedef PlatformClipboardTraits TypesToTest;
} // namespace ui
#include "ui/base/clipboard/clipboard_test_template.h"