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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/service_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/file_system_provider/service.h" 5 #include "chrome/browser/chromeos/file_system_provider/service.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h" 14 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h"
15 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" 15 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h"
16 #include "chrome/browser/chromeos/file_system_provider/observer.h" 16 #include "chrome/browser/chromeos/file_system_provider/observer.h"
17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
18 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" 18 #include "chrome/browser/chromeos/login/users/fake_user_manager.h"
19 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 19 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "chrome/test/base/testing_pref_service_syncable.h" 21 #include "chrome/test/base/testing_pref_service_syncable.h"
22 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
23 #include "components/user_prefs/user_prefs.h" 23 #include "components/user_prefs/user_prefs.h"
24 #include "content/public/test/test_browser_thread_bundle.h" 24 #include "content/public/test/test_browser_thread_bundle.h"
25 #include "extensions/browser/extension_registry.h" 25 #include "extensions/browser/extension_registry.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 #include "extensions/common/manifest_constants.h" 27 #include "extensions/common/manifest_constants.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "webkit/browser/fileapi/external_mount_points.h" 29 #include "storage/browser/fileapi/external_mount_points.h"
30 30
31 namespace chromeos { 31 namespace chromeos {
32 namespace file_system_provider { 32 namespace file_system_provider {
33 namespace { 33 namespace {
34 34
35 const char kExtensionId[] = "mbflcebpggnecokmikipoihdbecnjfoj"; 35 const char kExtensionId[] = "mbflcebpggnecokmikipoihdbecnjfoj";
36 const char kDisplayName[] = "Camera Pictures"; 36 const char kDisplayName[] = "Camera Pictures";
37 37
38 // The dot in the file system ID is there in order to check that saving to 38 // The dot in the file system ID is there in order to check that saving to
39 // preferences works correctly. File System ID is used as a key in 39 // preferences works correctly. File System ID is used as a key in
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 const base::DictionaryValue* file_systems = NULL; 476 const base::DictionaryValue* file_systems = NULL;
477 EXPECT_FALSE(extensions->GetDictionaryWithoutPathExpansion(kExtensionId, 477 EXPECT_FALSE(extensions->GetDictionaryWithoutPathExpansion(kExtensionId,
478 &file_systems)); 478 &file_systems));
479 } 479 }
480 480
481 service_->RemoveObserver(&observer); 481 service_->RemoveObserver(&observer);
482 } 482 }
483 483
484 } // namespace file_system_provider 484 } // namespace file_system_provider
485 } // namespace chromeos 485 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/service.cc ('k') | chrome/browser/chromeos/fileapi/file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698