OLD | NEW |
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 "content/browser/net/sqlite_persistent_cookie_store.h" | 5 #include "content/browser/net/sqlite_persistent_cookie_store.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
19 #include "base/test/sequenced_worker_pool_owner.h" | 19 #include "base/test/sequenced_worker_pool_owner.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "content/public/browser/cookie_crypto_delegate.h" | 22 #include "content/public/browser/cookie_crypto_delegate.h" |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 EXPECT_EQ(2, resultcount); | 599 EXPECT_EQ(2, resultcount); |
600 | 600 |
601 // Verify that "encrypted_value" is NOT visible in the file. | 601 // Verify that "encrypted_value" is NOT visible in the file. |
602 contents = ReadRawDBContents(); | 602 contents = ReadRawDBContents(); |
603 EXPECT_NE(0U, contents.length()); | 603 EXPECT_NE(0U, contents.length()); |
604 EXPECT_EQ(contents.find("encrypted_value123XYZ"), std::string::npos); | 604 EXPECT_EQ(contents.find("encrypted_value123XYZ"), std::string::npos); |
605 EXPECT_EQ(contents.find("something456ABC"), std::string::npos); | 605 EXPECT_EQ(contents.find("something456ABC"), std::string::npos); |
606 } | 606 } |
607 | 607 |
608 } // namespace content | 608 } // namespace content |
OLD | NEW |