blob: d799a50e36000680adaed0208af979c580a6f9f7 [file] [log] [blame]
jennyza77f6e82016-07-19 17:21:031// Copyright (c) 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/extensions/extension_apitest.h"
6#include "extensions/test/extension_test_message_listener.h"
7
Devlin Croninef3e37e2018-05-14 23:47:248using ClipboardExtensionApiTest = extensions::ExtensionApiTest;
jennyza77f6e82016-07-19 17:21:039
10IN_PROC_BROWSER_TEST_F(ClipboardExtensionApiTest, ClipboardDataChanged) {
11 ExtensionTestMessageListener result_listener("success 2", false);
12 ASSERT_TRUE(RunPlatformAppTest("clipboard/clipboard_data_changed"))
13 << message_;
14 ASSERT_TRUE(result_listener.WaitUntilSatisfied());
15}
jennyz6298fc52017-01-05 01:33:2916
17IN_PROC_BROWSER_TEST_F(ClipboardExtensionApiTest, SetImageData) {
18 ASSERT_TRUE(StartEmbeddedTestServer());
19 ExtensionTestMessageListener clipboard_change_listener(
20 "clipboard data changed 2", false);
21 ASSERT_TRUE(RunPlatformAppTest("clipboard/set_image_data"))
22 << message_;
23 ASSERT_TRUE(clipboard_change_listener.WaitUntilSatisfied());
24}