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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_server_bound_cert_helper_unittest.cc

Issue 10805015: Move browsing_data_helper files into a separate directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chrome_frame build Created 8 years, 5 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 "chrome/browser/browsing_data_server_bound_cert_helper.h" 5 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/test/test_browser_thread.h" 11 #include "content/public/test/test_browser_thread.h"
12 #include "net/base/server_bound_cert_service.h" 12 #include "net/base/server_bound_cert_service.h"
13 #include "net/url_request/url_request_context.h" 13 #include "net/url_request/url_request_context.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 new CannedBrowsingDataServerBoundCertHelper()); 150 new CannedBrowsingDataServerBoundCertHelper());
151 151
152 ASSERT_TRUE(helper->empty()); 152 ASSERT_TRUE(helper->empty());
153 helper->AddServerBoundCert(net::ServerBoundCertStore::ServerBoundCert( 153 helper->AddServerBoundCert(net::ServerBoundCertStore::ServerBoundCert(
154 origin, net::CLIENT_CERT_RSA_SIGN, base::Time(), base::Time(), "key", 154 origin, net::CLIENT_CERT_RSA_SIGN, base::Time(), base::Time(), "key",
155 "cert")); 155 "cert"));
156 ASSERT_FALSE(helper->empty()); 156 ASSERT_FALSE(helper->empty());
157 helper->Reset(); 157 helper->Reset();
158 ASSERT_TRUE(helper->empty()); 158 ASSERT_TRUE(helper->empty());
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698