Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 #ifndef PPAPI_TESTS_TEST_FILE_CHOOSER_H_ | |
| 6 #define PPAPI_TESTS_TEST_FILE_CHOOSER_H_ | |
| 7 | |
| 8 #include "ppapi/tests/test_case.h" | |
| 9 | |
| 10 namespace pp { | |
| 11 class FileRef; | |
| 12 } | |
| 13 | |
| 14 class TestFileChooser : public TestCase { | |
| 15 public: | |
| 16 TestFileChooser(TestingInstance* instance) : TestCase(instance) {} | |
| 17 | |
| 18 // TestCase | |
| 19 bool Init() override; | |
| 20 void RunTests(const std::string& filter); | |
| 21 | |
| 22 private: | |
| 23 static const char kTestFileContents[]; | |
| 24 static const size_t kTestFileContentsSizeBytes; | |
|
bbudge
2015/10/22 22:35:51
Is there a reason these are declared in the header
asanka
2015/10/23 19:35:03
None. Moved to anonymous namespace in .cc file.
| |
| 25 | |
| 26 // Writes kTestFileContents into the file represented by |file_ref|. Returns | |
| 27 // true on success. | |
| 28 bool WriteDefaultContentsToFile(const pp::FileRef& file_ref); | |
| 29 | |
| 30 std::string TestOpenSimple(); | |
| 31 std::string TestOpenCancel(); | |
| 32 std::string TestSaveAsSafeDefaultName(); | |
| 33 std::string TestSaveAsUnsafeDefaultName(); | |
| 34 std::string TestSaveAsCancel(); | |
| 35 std::string TestSaveAsDangerousExecutableAllowed(); | |
| 36 std::string TestSaveAsDangerousExecutableDisallowed(); | |
| 37 }; | |
| 38 | |
| 39 #endif // PPAPI_TESTS_TEST_FILE_CHOOSER_H_ | |
| OLD | NEW |