summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_flash_file.h
blob: 86055db172a595f3580fe04080f24bf00c612366 (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 PAPPI_TESTS_TEST_FLASH_FILE_H_
#define PPAPI_TESTS_TEST_FLASH_FILE_H_

#include <string>

#include "ppapi/tests/test_case.h"

class TestFlashFile: public TestCase {
 public:
  explicit TestFlashFile(TestingInstance* instance);
  virtual ~TestFlashFile();

  // TestCase implementation.
  virtual bool Init();
  virtual void RunTests(const std::string& filter);

 private:
  // TODO(raymes): We should have SetUp/TearDown methods for ppapi tests.
  void SetUp();

  std::string TestOpenFile();
  std::string TestRenameFile();
  std::string TestDeleteFileOrDir();
  std::string TestCreateDir();
  std::string TestQueryFile();
  std::string TestGetDirContents();
  std::string TestCreateTemporaryFile();

  // TODO(raymes): Add these when we can test file chooser properly.
  // std::string TestOpenFileRef();
  // std::string TestQueryFileRef();

  // Gets the number of files and directories under the module-local root
  // directory.
  std::string GetItemCountUnderModuleLocalRoot(size_t* item_count);
};

#endif  // PPAPI_TESTS_TEST_FLASH_FILE_H_