Don't preload rarely seen large images
[chromium-blink-merge.git] / components / filesystem / files_test_base.h
blobbc9a9a311bd898dfc9cbbfa33ca8beeea3b2ff7e
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.
5 #ifndef COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_
6 #define COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_
8 #include "base/macros.h"
9 #include "components/filesystem/public/interfaces/file_system.mojom.h"
10 #include "mojo/application/public/cpp/application_test_base.h"
12 namespace filesystem {
14 class FilesTestBase : public mojo::test::ApplicationTestBase {
15 public:
16 FilesTestBase();
17 ~FilesTestBase() override;
19 void SetUp() override;
21 protected:
22 // Note: This has an out parameter rather than returning the |DirectoryPtr|,
23 // since |ASSERT_...()| doesn't work with return values.
24 void GetTemporaryRoot(DirectoryPtr* directory);
26 FileSystemPtr& files() { return files_; }
28 private:
29 FileSystemPtr files_;
31 DISALLOW_COPY_AND_ASSIGN(FilesTestBase);
34 } // namespace filesystem
36 #endif // COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_