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

Side by Side Diff: chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/test/thread_test_helper.h" 12 #include "base/test/thread_test_helper.h"
13 #include "chrome/browser/net/clear_on_exit_policy.h" 13 #include "chrome/browser/net/clear_on_exit_policy.h"
14 #include "chrome/browser/net/sqlite_server_bound_cert_store.h" 14 #include "chrome/browser/net/sqlite_server_bound_cert_store.h"
15 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
17 #include "net/base/cert_test_util.h" 17 #include "net/base/cert_test_util.h"
18 #include "sql/statement.h" 18 #include "sql/statement.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webkit/quota/mock_special_storage_policy.h" 20 #include "webkit/quota/mock_special_storage_policy.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 class SQLiteServerBoundCertStoreTest : public testing::Test { 24 class SQLiteServerBoundCertStoreTest : public testing::Test {
25 public: 25 public:
26 SQLiteServerBoundCertStoreTest() 26 SQLiteServerBoundCertStoreTest()
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 ASSERT_TRUE(CertificateExistsInList(&certs.get(), 611 ASSERT_TRUE(CertificateExistsInList(&certs.get(),
612 "other.com", 612 "other.com",
613 net::CLIENT_CERT_RSA_SIGN, 613 net::CLIENT_CERT_RSA_SIGN,
614 "a", "b", 1, 2)); 614 "a", "b", 1, 2));
615 ASSERT_TRUE(CertificateExistsInList(&certs.get(), 615 ASSERT_TRUE(CertificateExistsInList(&certs.get(),
616 "protected.com", 616 "protected.com",
617 net::CLIENT_CERT_RSA_SIGN, 617 net::CLIENT_CERT_RSA_SIGN,
618 "n", "m", 5, 6)); 618 "n", "m", 5, 6));
619 } 619 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698