blob: 824386c293077e1ecfa8bc1c95e4a46bbc2b3b14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2012 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.
#ifndef PPAPI_TESTS_TEST_FLASH_CLIPBOARD_H_
#define PPAPI_TESTS_TEST_FLASH_CLIPBOARD_H_
#include <string>
#include "ppapi/c/private/ppb_flash_clipboard.h"
#include "ppapi/tests/test_case.h"
#include "ppapi/tests/test_utils.h"
class TestFlashClipboard : public TestCase {
public:
explicit TestFlashClipboard(TestingInstance* instance);
// TestCase implementation.
virtual void RunTests(const std::string& filter);
private:
// Helpers.
bool ReadStringVar(uint32_t format, std::string* result);
bool WriteStringVar(uint32_t format, const std::string& text);
bool IsFormatAvailableMatches(uint32_t format, bool expected);
bool ReadPlainTextMatches(const std::string& expected);
bool ReadHTMLMatches(const std::string& expected);
uint64_t GetSequenceNumber(uint64_t last_sequence_number);
// Tests.
std::string TestReadWritePlainText();
std::string TestReadWriteHTML();
std::string TestReadWriteRTF();
std::string TestReadWriteMultipleFormats();
std::string TestReadWriteCustomData();
std::string TestClear();
std::string TestInvalidFormat();
std::string TestRegisterCustomFormat();
std::string TestGetSequenceNumber();
};
#endif // PAPPI_TESTS_TEST_FLASH_FULLSCREEN_H_
|