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

Side by Side Diff: content/browser/fileapi/sandbox_origin_database_unittest.cc

Issue 1853033003: Fix IWYU violators that don't include scoped_ptr.h in Windows build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <limits> 9 #include <limits>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/files/scoped_temp_dir.h" 16 #include "base/files/scoped_temp_dir.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/scoped_ptr.h"
18 #include "base/stl_util.h" 19 #include "base/stl_util.h"
19 #include "content/browser/fileapi/sandbox_database_test_helper.h" 20 #include "content/browser/fileapi/sandbox_database_test_helper.h"
20 #include "storage/browser/fileapi/sandbox_origin_database.h" 21 #include "storage/browser/fileapi/sandbox_origin_database.h"
21 #include "storage/common/fileapi/file_system_util.h" 22 #include "storage/common/fileapi/file_system_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 #include "third_party/leveldatabase/src/db/filename.h" 24 #include "third_party/leveldatabase/src/db/filename.h"
24 #include "third_party/leveldatabase/src/include/leveldb/db.h" 25 #include "third_party/leveldatabase/src/include/leveldb/db.h"
25 26
26 using storage::SandboxOriginDatabase; 27 using storage::SandboxOriginDatabase;
27 28
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 const std::string kOrigin2("piyo.example.org"); 301 const std::string kOrigin2("piyo.example.org");
301 EXPECT_FALSE(database->HasOriginPath(kOrigin2)); 302 EXPECT_FALSE(database->HasOriginPath(kOrigin2));
302 EXPECT_TRUE(database->GetPathForOrigin(kOrigin2, &path)); 303 EXPECT_TRUE(database->GetPathForOrigin(kOrigin2, &path));
303 EXPECT_FALSE(path.empty()); 304 EXPECT_FALSE(path.empty());
304 EXPECT_TRUE(database->HasOriginPath(kOrigin2)); 305 EXPECT_TRUE(database->HasOriginPath(kOrigin2));
305 } 306 }
306 } 307 }
307 308
308 } // namespace content 309 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698