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

Side by Side Diff: chrome/browser/chromeos/drive/fileapi/fileapi_worker_unittest.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 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/drive/fileapi/fileapi_worker.h" 5 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory>
10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
11 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "components/drive/dummy_file_system.h" 14 #include "components/drive/dummy_file_system.h"
14 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
15 #include "content/public/test/test_utils.h" 16 #include "content/public/test/test_utils.h"
16 #include "google_apis/drive/test_util.h" 17 #include "google_apis/drive/test_util.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
19 namespace drive { 20 namespace drive {
20 namespace fileapi_internal { 21 namespace fileapi_internal {
21 namespace { 22 namespace {
22 23
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 OpenFile(kDummyPath, 259 OpenFile(kDummyPath,
259 base::File::FLAG_OPEN | base::File::FLAG_READ, 260 base::File::FLAG_OPEN | base::File::FLAG_READ,
260 base::Bind(&VerifyRead, kInitialData), 261 base::Bind(&VerifyRead, kInitialData),
261 &file_system); 262 &file_system);
262 content::RunAllBlockingPoolTasksUntilIdle(); 263 content::RunAllBlockingPoolTasksUntilIdle();
263 EXPECT_TRUE(file_system.closed()); 264 EXPECT_TRUE(file_system.closed());
264 } 265 }
265 266
266 } // namespace fileapi_internal 267 } // namespace fileapi_internal
267 } // namespace drive 268 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698