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

Side by Side Diff: chrome/browser/media_galleries/media_file_system_registry_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // MediaFileSystemRegistry unit tests. 5 // MediaFileSystemRegistry unit tests.
6 6
7 #include "chrome/browser/media_galleries/media_file_system_registry.h" 7 #include "chrome/browser/media_galleries/media_file_system_registry.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 33 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
34 #include "chrome/browser/media_galleries/media_galleries_test_util.h" 34 #include "chrome/browser/media_galleries/media_galleries_test_util.h"
35 #include "chrome/common/chrome_paths.h" 35 #include "chrome/common/chrome_paths.h"
36 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 36 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
37 #include "chrome/test/base/testing_browser_process.h" 37 #include "chrome/test/base/testing_browser_process.h"
38 #include "chrome/test/base/testing_profile.h" 38 #include "chrome/test/base/testing_profile.h"
39 #include "components/storage_monitor/removable_device_constants.h" 39 #include "components/storage_monitor/removable_device_constants.h"
40 #include "components/storage_monitor/storage_info.h" 40 #include "components/storage_monitor/storage_info.h"
41 #include "components/storage_monitor/storage_monitor.h" 41 #include "components/storage_monitor/storage_monitor.h"
42 #include "components/storage_monitor/test_storage_monitor.h" 42 #include "components/storage_monitor/test_storage_monitor.h"
43 #include "components/sync/api/string_ordinal.h"
43 #include "content/public/browser/render_process_host.h" 44 #include "content/public/browser/render_process_host.h"
44 #include "content/public/browser/render_process_host_factory.h" 45 #include "content/public/browser/render_process_host_factory.h"
45 #include "content/public/browser/web_contents.h" 46 #include "content/public/browser/web_contents.h"
46 #include "content/public/test/mock_render_process_host.h" 47 #include "content/public/test/mock_render_process_host.h"
47 #include "content/public/test/test_browser_thread.h" 48 #include "content/public/test/test_browser_thread.h"
48 #include "content/public/test/web_contents_tester.h" 49 #include "content/public/test/web_contents_tester.h"
49 #include "extensions/browser/extension_system.h" 50 #include "extensions/browser/extension_system.h"
50 #include "extensions/common/extension.h" 51 #include "extensions/common/extension.h"
51 #include "sync/api/string_ordinal.h"
52 #include "testing/gtest/include/gtest/gtest.h" 52 #include "testing/gtest/include/gtest/gtest.h"
53 53
54 #if defined(OS_CHROMEOS) 54 #if defined(OS_CHROMEOS)
55 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" 55 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
56 #include "chrome/browser/chromeos/settings/cros_settings.h" 56 #include "chrome/browser/chromeos/settings/cros_settings.h"
57 #include "chrome/browser/chromeos/settings/device_settings_service.h" 57 #include "chrome/browser/chromeos/settings/device_settings_service.h"
58 #endif 58 #endif
59 59
60 using content::BrowserThread; 60 using content::BrowserThread;
61 using storage_monitor::StorageInfo; 61 using storage_monitor::StorageInfo;
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 fs_info.begin()->second.fsid).empty()); 1071 fs_info.begin()->second.fsid).empty());
1072 1072
1073 // Revoke permission and ensure that the file system is revoked. 1073 // Revoke permission and ensure that the file system is revoked.
1074 SetGalleryPermission(profile_state, 1074 SetGalleryPermission(profile_state,
1075 profile_state->regular_permission_extension(), 1075 profile_state->regular_permission_extension(),
1076 device_id, 1076 device_id,
1077 false /*has access*/); 1077 false /*has access*/);
1078 EXPECT_TRUE(test_file_system_context()->GetRegisteredPath( 1078 EXPECT_TRUE(test_file_system_context()->GetRegisteredPath(
1079 fs_info.begin()->second.fsid).empty()); 1079 fs_info.begin()->second.fsid).empty());
1080 } 1080 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698