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

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

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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 <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/files/file.h" 14 #include "base/files/file.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/files/scoped_temp_dir.h" 17 #include "base/files/scoped_temp_dir.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "content/browser/fileapi/sandbox_database_test_helper.h"
21 #include "storage/browser/fileapi/sandbox_origin_database.h" 20 #include "storage/browser/fileapi/sandbox_origin_database.h"
21 #include "storage/browser/test/sandbox_database_test_helper.h"
22 #include "storage/common/fileapi/file_system_util.h" 22 #include "storage/common/fileapi/file_system_util.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "third_party/leveldatabase/src/db/filename.h" 24 #include "third_party/leveldatabase/src/db/filename.h"
25 #include "third_party/leveldatabase/src/include/leveldb/db.h" 25 #include "third_party/leveldatabase/src/include/leveldb/db.h"
26 26
27 using storage::SandboxOriginDatabase; 27 using storage::SandboxOriginDatabase;
28 28
29 namespace content { 29 namespace content {
30 30
31 namespace { 31 namespace {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 const std::string kOrigin2("piyo.example.org"); 301 const std::string kOrigin2("piyo.example.org");
302 EXPECT_FALSE(database->HasOriginPath(kOrigin2)); 302 EXPECT_FALSE(database->HasOriginPath(kOrigin2));
303 EXPECT_TRUE(database->GetPathForOrigin(kOrigin2, &path)); 303 EXPECT_TRUE(database->GetPathForOrigin(kOrigin2, &path));
304 EXPECT_FALSE(path.empty()); 304 EXPECT_FALSE(path.empty());
305 EXPECT_TRUE(database->HasOriginPath(kOrigin2)); 305 EXPECT_TRUE(database->HasOriginPath(kOrigin2));
306 } 306 }
307 } 307 }
308 308
309 } // namespace content 309 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698