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

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

Issue 1192493003: Move browser-agnostic code from file_system_util to file_system_core_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-prefservice
Patch Set: Rebasing... Created 5 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/download_handler.h" 5 #include "chrome/browser/chromeos/drive/download_handler.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "chrome/browser/chromeos/drive/dummy_file_system.h" 8 #include "chrome/browser/chromeos/drive/dummy_file_system.h"
9 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
9 #include "chrome/browser/chromeos/drive/file_system_util.h" 10 #include "chrome/browser/chromeos/drive/file_system_util.h"
10 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/test/mock_download_item.h" 12 #include "content/public/test/mock_download_item.h"
12 #include "content/public/test/mock_download_manager.h" 13 #include "content/public/test/mock_download_manager.h"
13 #include "content/public/test/test_browser_thread_bundle.h" 14 #include "content/public/test/test_browser_thread_bundle.h"
14 #include "content/public/test/test_utils.h" 15 #include "content/public/test/test_utils.h"
15 #include "google_apis/drive/test_util.h" 16 #include "google_apis/drive/test_util.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 namespace drive { 19 namespace drive {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 download_handler_->CheckForFileExistence( 190 download_handler_->CheckForFileExistence(
190 &download_item_, 191 &download_item_,
191 google_apis::test_util::CreateCopyResultCallback(&file_exists)); 192 google_apis::test_util::CreateCopyResultCallback(&file_exists));
192 content::RunAllBlockingPoolTasksUntilIdle(); 193 content::RunAllBlockingPoolTasksUntilIdle();
193 194
194 // Check the result. 195 // Check the result.
195 EXPECT_FALSE(file_exists); 196 EXPECT_FALSE(file_exists);
196 } 197 }
197 198
198 } // namespace drive 199 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698