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

Side by Side Diff: net/extras/sqlite/sqlite_channel_id_store_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « net/cert_net/nss_ocsp_unittest.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "net/extras/sqlite/sqlite_channel_id_store.h" 5 #include "net/extras/sqlite/sqlite_channel_id_store.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/threading/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "crypto/ec_private_key.h" 17 #include "crypto/ec_private_key.h"
18 #include "net/base/test_data_directory.h"
19 #include "net/cert/asn1_util.h" 18 #include "net/cert/asn1_util.h"
20 #include "net/ssl/channel_id_service.h" 19 #include "net/ssl/channel_id_service.h"
21 #include "net/ssl/ssl_client_cert_type.h" 20 #include "net/ssl/ssl_client_cert_type.h"
22 #include "net/test/cert_test_util.h" 21 #include "net/test/cert_test_util.h"
23 #include "net/test/channel_id_test_util.h" 22 #include "net/test/channel_id_test_util.h"
23 #include "net/test/test_data_directory.h"
24 #include "sql/statement.h" 24 #include "sql/statement.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace net { 27 namespace net {
28 28
29 const base::FilePath::CharType kTestChannelIDFilename[] = 29 const base::FilePath::CharType kTestChannelIDFilename[] =
30 FILE_PATH_LITERAL("ChannelID"); 30 FILE_PATH_LITERAL("ChannelID");
31 31
32 class SQLiteChannelIDStoreTest : public testing::Test { 32 class SQLiteChannelIDStoreTest : public testing::Test {
33 public: 33 public:
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 sql::Statement smt(db.GetUniqueStatement( 535 sql::Statement smt(db.GetUniqueStatement(
536 "SELECT value FROM meta WHERE key = \"version\"")); 536 "SELECT value FROM meta WHERE key = \"version\""));
537 ASSERT_TRUE(smt.Step()); 537 ASSERT_TRUE(smt.Step());
538 EXPECT_EQ(5, smt.ColumnInt(0)); 538 EXPECT_EQ(5, smt.ColumnInt(0));
539 EXPECT_FALSE(smt.Step()); 539 EXPECT_FALSE(smt.Step());
540 } 540 }
541 } 541 }
542 } 542 }
543 543
544 } // namespace net 544 } // namespace net
OLDNEW
« no previous file with comments | « net/cert_net/nss_ocsp_unittest.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698