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

Side by Side Diff: chrome/browser/platform_util_unittest.cc

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/platform_util.h" 5 #include "chrome/browser/platform_util.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/platform_util_internal.h" 16 #include "chrome/browser/platform_util_internal.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
20 #include "base/json/json_string_value_serializer.h" 20 #include "base/json/json_string_value_serializer.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/chrome_content_browser_client.h" 22 #include "chrome/browser/chrome_content_browser_client.h"
23 #include "chrome/browser/chromeos/file_manager/app_id.h" 23 #include "chrome/browser/chromeos/file_manager/app_id.h"
24 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 24 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
25 #include "chrome/browser/extensions/extension_special_storage_policy.h" 25 #include "chrome/browser/extensions/extension_special_storage_policy.h"
26 #include "chrome/test/base/browser_with_test_window_test.h" 26 #include "chrome/test/base/browser_with_test_window_test.h"
27 #include "content/public/browser/browser_context.h" 27 #include "content/public/browser/browser_context.h"
28 #include "content/public/common/content_client.h" 28 #include "content/public/common/content_client.h"
29 #include "content/public/test/mock_special_storage_policy.h"
30 #include "extensions/browser/extension_registry.h" 29 #include "extensions/browser/extension_registry.h"
31 #include "extensions/common/extension.h" 30 #include "extensions/common/extension.h"
32 #include "storage/browser/fileapi/external_mount_points.h" 31 #include "storage/browser/fileapi/external_mount_points.h"
32 #include "storage/browser/test/mock_special_storage_policy.h"
33 #include "storage/common/fileapi/file_system_types.h" 33 #include "storage/common/fileapi/file_system_types.h"
34 #else 34 #else
35 #include "content/public/test/test_browser_thread_bundle.h" 35 #include "content/public/test/test_browser_thread_bundle.h"
36 #endif 36 #endif
37 37
38 namespace platform_util { 38 namespace platform_util {
39 39
40 namespace { 40 namespace {
41 41
42 #if defined(OS_CHROMEOS) 42 #if defined(OS_CHROMEOS)
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 TEST_F(PlatformUtilPosixTest, OpenFolderWithPosixSymlinks) { 286 TEST_F(PlatformUtilPosixTest, OpenFolderWithPosixSymlinks) {
287 EXPECT_EQ(OPEN_SUCCEEDED, CallOpenItem(symlink_to_folder_, OPEN_FOLDER)); 287 EXPECT_EQ(OPEN_SUCCEEDED, CallOpenItem(symlink_to_folder_, OPEN_FOLDER));
288 EXPECT_EQ(OPEN_FAILED_INVALID_TYPE, 288 EXPECT_EQ(OPEN_FAILED_INVALID_TYPE,
289 CallOpenItem(symlink_to_file_, OPEN_FOLDER)); 289 CallOpenItem(symlink_to_file_, OPEN_FOLDER));
290 EXPECT_EQ(OPEN_FAILED_PATH_NOT_FOUND, 290 EXPECT_EQ(OPEN_FAILED_PATH_NOT_FOUND,
291 CallOpenItem(symlink_to_nowhere_, OPEN_FOLDER)); 291 CallOpenItem(symlink_to_nowhere_, OPEN_FOLDER));
292 } 292 }
293 #endif // OS_POSIX && !OS_CHROMEOS 293 #endif // OS_POSIX && !OS_CHROMEOS
294 294
295 } // namespace platform_util 295 } // namespace platform_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698