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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud_uitest.cc

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // access to the real SSL info. 73 // access to the real SSL info.
74 const char* kCertIssuer = "Chrome Internal"; 74 const char* kCertIssuer = "Chrome Internal";
75 const int kLifetimeDays = 100; 75 const int kLifetimeDays = 100;
76 76
77 info->ssl_info.cert = 77 info->ssl_info.cert =
78 new net::X509Certificate(request_->url().GetWithEmptyPath().spec(), 78 new net::X509Certificate(request_->url().GetWithEmptyPath().spec(),
79 kCertIssuer, 79 kCertIssuer,
80 base::Time::Now(), 80 base::Time::Now(),
81 base::Time::Now() + 81 base::Time::Now() +
82 base::TimeDelta::FromDays(kLifetimeDays)); 82 base::TimeDelta::FromDays(kLifetimeDays));
83 info->ssl_info.cert_status = 0; 83 info->ssl_info.cert_status = net::CERT_STATUS_NO_ERROR;
84 info->ssl_info.security_bits = -1; 84 info->ssl_info.security_bits = -1;
85 } 85 }
86 } 86 }
87 87
88 private: 88 private:
89 ~SimpleTestJob() {} 89 ~SimpleTestJob() {}
90 }; 90 };
91 91
92 class TestController { 92 class TestController {
93 public: 93 public:
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 string16 window_print = ASCIIToUTF16("window.print()"); 268 string16 window_print = ASCIIToUTF16("window.print()");
269 browser()->GetSelectedTabContents()->render_view_host()-> 269 browser()->GetSelectedTabContents()->render_view_host()->
270 ExecuteJavascriptInWebFrame(string16(), window_print); 270 ExecuteJavascriptInWebFrame(string16(), window_print);
271 271
272 ui_test_utils::RunMessageLoop(); 272 ui_test_utils::RunMessageLoop();
273 273
274 ASSERT_TRUE(TestController::GetInstance()->result()); 274 ASSERT_TRUE(TestController::GetInstance()->result());
275 } 275 }
276 #endif 276 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698