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

Issue 9535022: Exposed GetSecurityState and GetPageType to pyAuto. (Closed)

Created:
8 years, 9 months ago by dyu1
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dennis_jeffrey, John Grabowski, anantha, Ryan Sleevi
Visibility:
Public.

Description

Exposed GetSecurityState and GetPageType to pyAuto. The GetSecurityState retrieves different security states for the current tab. The GetPageType returns the type of page showing (normal, interstitial, error). Added additional tests that uses the exposed hooks. - testSSLCertOK - testSSLCertIsExpiredAndCertNameMismatches - testSSLCertAuthorityOK TEST=none BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126777

Patch Set 1 #

Total comments: 43

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 38

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -2 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/functional/https.py View 1 2 3 4 5 2 chunks +41 lines, -1 line 0 comments Download
M chrome/test/pyautolib/pyautolib.i View 1 2 3 4 4 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
dyu1
8 years, 9 months ago (2012-02-29 19:32:18 UTC) #1
anantha
http://codereview.chromium.org/9535022/diff/1/chrome/test/functional/https.py File chrome/test/functional/https.py (right): http://codereview.chromium.org/9535022/diff/1/chrome/test/functional/https.py#newcode105 chrome/test/functional/https.py:105: def testSSLCertIsExpired(self): testSSLCertIsExpired and remaining two functions are pretty ...
8 years, 9 months ago (2012-02-29 22:30:02 UTC) #2
dennis_jeffrey
I took a quick look through the .py file and have a few comments there, ...
8 years, 9 months ago (2012-02-29 23:37:13 UTC) #3
Nirnimesh
http://codereview.chromium.org/9535022/diff/1/chrome/test/pyautolib/pyautolib.i File chrome/test/pyautolib/pyautolib.i (right): http://codereview.chromium.org/9535022/diff/1/chrome/test/pyautolib/pyautolib.i#newcode27 chrome/test/pyautolib/pyautolib.i:27: // NOTE: All files included in this file should ...
8 years, 9 months ago (2012-02-29 23:41:07 UTC) #4
dyu1
refactored pyautolib.i and the tests. Rewrote GetSecurityState() in pyautolib, so it's more pythonic by returning ...
8 years, 9 months ago (2012-03-05 19:16:46 UTC) #5
Nirnimesh
Thanks for making it simpler on the python side. I have a few more comments. ...
8 years, 9 months ago (2012-03-05 19:46:01 UTC) #6
dyu1
http://codereview.chromium.org/9535022/diff/7001/chrome/test/pyautolib/pyautolib.i File chrome/test/pyautolib/pyautolib.i (right): http://codereview.chromium.org/9535022/diff/7001/chrome/test/pyautolib/pyautolib.i#newcode35 chrome/test/pyautolib/pyautolib.i:35: %include "content/public/common/page_type.h" No, it worked fine. The compile errors ...
8 years, 9 months ago (2012-03-06 20:45:13 UTC) #7
dyu1
Hey Nirnimesh, if you get some time while on your trip can you have a ...
8 years, 9 months ago (2012-03-08 22:39:29 UTC) #8
dyu1
Looping in Frank if Nirnimesh can't review.
8 years, 9 months ago (2012-03-09 01:10:07 UTC) #9
dennis_jeffrey
http://codereview.chromium.org/9535022/diff/12001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/9535022/diff/12001/chrome/chrome_tests.gypi#newcode19 chrome/chrome_tests.gypi:19: '../net/base/cert_status_flags.h', nit: swap the above 2 lines to maintain ...
8 years, 9 months ago (2012-03-09 02:07:47 UTC) #10
dyu1
http://codereview.chromium.org/9535022/diff/12001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/9535022/diff/12001/chrome/chrome_tests.gypi#newcode19 chrome/chrome_tests.gypi:19: '../net/base/cert_status_flags.h', This is not by accident. The ordering needs ...
8 years, 9 months ago (2012-03-14 19:00:10 UTC) #11
dennis_jeffrey
few more comments http://codereview.chromium.org/9535022/diff/12001/chrome/test/functional/https.py File chrome/test/functional/https.py (right): http://codereview.chromium.org/9535022/diff/12001/chrome/test/functional/https.py#newcode101 chrome/test/functional/https.py:101: msg="Cert OK displayed interstitial page.") On ...
8 years, 9 months ago (2012-03-14 21:55:26 UTC) #12
dyu1
http://codereview.chromium.org/9535022/diff/12001/chrome/test/functional/https.py File chrome/test/functional/https.py (right): http://codereview.chromium.org/9535022/diff/12001/chrome/test/functional/https.py#newcode101 chrome/test/functional/https.py:101: msg="Cert OK displayed interstitial page.") On 2012/03/14 21:55:26, dennis_jeffrey ...
8 years, 9 months ago (2012-03-14 22:32:32 UTC) #13
dennis_jeffrey
LGTM with 1 nit. Thanks! http://codereview.chromium.org/9535022/diff/25002/chrome/test/functional/https.py File chrome/test/functional/https.py (right): http://codereview.chromium.org/9535022/diff/25002/chrome/test/functional/https.py#newcode105 chrome/test/functional/https.py:105: msg="Cert OK displayed error ...
8 years, 9 months ago (2012-03-14 22:51:20 UTC) #14
dyu1
http://codereview.chromium.org/9535022/diff/25002/chrome/test/functional/https.py File chrome/test/functional/https.py (right): http://codereview.chromium.org/9535022/diff/25002/chrome/test/functional/https.py#newcode105 chrome/test/functional/https.py:105: msg="Cert OK displayed error page %s." % result_dict['page_type']) On ...
8 years, 9 months ago (2012-03-14 22:59:03 UTC) #15
Ryan Sleevi
8 years, 9 months ago (2012-03-15 05:17:41 UTC) #16
I don't see any tryjobs after patchset 3. Please run tryjobs or use the
commit-queue.

As it is, this change broke the commit queue, as the 'win' trybot (which builds
all targets as a shared library) was no longer able to link pyautolib.

http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number...


   Creating library ..\build\Debug\lib\_pyautolib.lib and object
..\build\Debug\lib\_pyautolib.exp
pyautolib_wrap.obj :error LNK2019: unresolved external symbol "unsigned int
__cdecl net::MapNetErrorToCertStatus(int)"
(?MapNetErrorToCertStatus@net@@YAIH@Z) referenced in function
__wrap_MapNetErrorToCertStatus
..\build\Debug\_pyautolib.pyd : fatalerror LNK1120: 1 unresolved externals

Powered by Google App Engine
This is Rietveld 408576698