Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: ppapi/tests/test_file_chooser.h

Issue 1409003002: [SafeBrowsing] Block dangerous unchecked downloads based on a Finch trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 bool WriteDefaultContentsToFile(const pp::FileRef& file_ref);
24
25 std::string TestOpenSimple();
26 std::string TestOpenCancel();
27 std::string TestSaveAsSafeDefaultName();
28 std::string TestSaveAsUnsafeDefaultName();
29 std::string TestSaveAsDangerousExecutableAllowed();
30 std::string TestSaveAsDangerousExecutableDisallowed();
31 };
32
33 #endif // PPAPI_TESTS_TEST_FILE_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698