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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_util_unittest.cc

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 years, 3 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 #include "chrome/browser/chromeos/drive/file_system_util.h" 5 #include "chrome/browser/chromeos/drive/file_system_util.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/chromeos/profiles/profile_helper.h" 12 #include "chrome/browser/chromeos/profiles/profile_helper.h"
13 #include "chrome/test/base/testing_browser_process.h" 13 #include "chrome/test/base/testing_browser_process.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "chrome/test/base/testing_profile_manager.h" 15 #include "chrome/test/base/testing_profile_manager.h"
16 #include "content/public/test/test_browser_thread_bundle.h" 16 #include "content/public/test/test_browser_thread_bundle.h"
17 #include "content/public/test/test_file_system_options.h" 17 #include "content/public/test/test_file_system_options.h"
18 #include "google_apis/drive/test_util.h" 18 #include "google_apis/drive/test_util.h"
19 #include "storage/browser/fileapi/external_mount_points.h"
20 #include "storage/browser/fileapi/file_system_backend.h"
21 #include "storage/browser/fileapi/file_system_context.h"
22 #include "storage/browser/fileapi/file_system_url.h"
23 #include "storage/browser/fileapi/isolated_context.h"
19 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webkit/browser/fileapi/external_mount_points.h"
21 #include "webkit/browser/fileapi/file_system_backend.h"
22 #include "webkit/browser/fileapi/file_system_context.h"
23 #include "webkit/browser/fileapi/file_system_url.h"
24 #include "webkit/browser/fileapi/isolated_context.h"
25 25
26 namespace drive { 26 namespace drive {
27 namespace util { 27 namespace util {
28 28
29 namespace { 29 namespace {
30 30
31 // Sets up ProfileManager for testing and marks the current thread as UI by 31 // Sets up ProfileManager for testing and marks the current thread as UI by
32 // TestBrowserThreadBundle. We need the thread since Profile objects must be 32 // TestBrowserThreadBundle. We need the thread since Profile objects must be
33 // touched from UI and hence has CHECK/DCHECKs for it. 33 // touched from UI and hence has CHECK/DCHECKs for it.
34 class ProfileRelatedFileSystemUtilTest : public testing::Test { 34 class ProfileRelatedFileSystemUtilTest : public testing::Test {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // Non GDoc file. 286 // Non GDoc file.
287 file = temp_dir.path().AppendASCII("test.txt"); 287 file = temp_dir.path().AppendASCII("test.txt");
288 std::string data = "Hello world!"; 288 std::string data = "Hello world!";
289 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data)); 289 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data));
290 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty()); 290 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty());
291 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty()); 291 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty());
292 } 292 }
293 293
294 } // namespace util 294 } // namespace util
295 } // namespace drive 295 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.cc ('k') | chrome/browser/chromeos/drive/file_task_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698