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

Issue 10784009: screenshot disabling policy tests (Closed)

Created:
8 years, 5 months ago by qfel
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, sadrul, ben+watch_chromium.org, Aaron Boodman, anantha, dyu1, dennis_jeffrey, Joao da Silva, bartfab (slow)
Base URL:
http://git.chromium.org/chromium/src.git@disable_screenshots
Visibility:
Public.

Description

Tests for disabling screenshots policy (see https://chromiumcodereview.appspot.com/10692110/): * Test screenshot keyboard shortcut * Test feedback form screenshot element * Test CaptureVisibleTab extension function BUG=chromium-os:24747 TEST=browser_tests, policy.py Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154714

Patch Set 1 : Tests #

Total comments: 15

Patch Set 2 : Addressed comments (1) #

Total comments: 1

Patch Set 3 : accelerator_table.h, renamed ApplyAshAccelerator, addressed comments (2) #

Total comments: 1

Patch Set 4 : Addressed comments (3) #

Patch Set 5 : Rebased, removed #pragma once #

Total comments: 1

Patch Set 6 : Rebased, removed conditional compilation in enum definition #

Patch Set 7 : Fixed Android and Mac builds #

Patch Set 8 : Updated accelerator_action.h #

Total comments: 8

Patch Set 9 : Addressed comments (4) #

Patch Set 10 : Rebased, incorporated new pyauto RunCommand changes #

Patch Set 11 : Removed pyauto tests #

Patch Set 12 : Fixed gypi file #

Patch Set 13 : Browser tests #

Patch Set 14 : Added missing CrOS guards #

Total comments: 22

Patch Set 15 : Addressed comments #

Patch Set 16 : Rebased #

Messages

Total messages: 44 (0 generated)
qfel
8 years, 5 months ago (2012-07-16 09:29:08 UTC) #1
Mattias Nissler (ping if slow)
Nirnimesh, I think you could handle this review much better than me :) https://chromiumcodereview.appspot.com/10784009/diff/2001/chrome/test/functional/policy.py File ...
8 years, 5 months ago (2012-07-16 10:51:55 UTC) #2
Nirnimesh
Please fix the CL title. https://chromiumcodereview.appspot.com/10784009/diff/2001/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js File chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js (right): https://chromiumcodereview.appspot.com/10784009/diff/2001/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js#newcode1 chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js:1: var pass = chrome.test.callbackPass; ...
8 years, 5 months ago (2012-07-16 20:01:50 UTC) #3
qfel
http://codereview.chromium.org/10784009/diff/2001/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js File chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js (right): http://codereview.chromium.org/10784009/diff/2001/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js#newcode1 chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js:1: var pass = chrome.test.callbackPass; On 2012/07/16 20:01:50, Nirnimesh wrote: ...
8 years, 5 months ago (2012-07-17 10:07:25 UTC) #4
Nirnimesh
LGTM http://codereview.chromium.org/10784009/diff/9001/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10784009/diff/9001/chrome/test/pyautolib/pyauto.py#newcode5434 chrome/test/pyautolib/pyauto.py:5434: def ApplyAshAccelerator(self, action): Add a docstring please. Also ...
8 years, 5 months ago (2012-07-17 10:23:29 UTC) #5
qfel
Sorry, it turns out I failed to run chrome-os only test correctly, and didn't catch ...
8 years, 5 months ago (2012-07-17 13:05:34 UTC) #6
Nirnimesh
LGTM http://codereview.chromium.org/10784009/diff/6010/ash/accelerators/accelerator_table.h File ash/accelerators/accelerator_table.h (right): http://codereview.chromium.org/10784009/diff/6010/ash/accelerators/accelerator_table.h#newcode12 ash/accelerators/accelerator_table.h:12: // Used to inclulde AcceleratorAction definition which originally ...
8 years, 5 months ago (2012-07-17 23:05:34 UTC) #7
qfel
Mihai: please review chrome/test/data/extensions/api_test/tabs/capture_visible_tab/* and chrome/browser/extensions/extension_tabs_apitest.cc
8 years, 5 months ago (2012-07-19 12:27:17 UTC) #8
Mihai Parparita -not on Chrome
Since Matt reviewed the CL that adds the functionality, he seems like a more appropriate ...
8 years, 5 months ago (2012-07-20 05:13:51 UTC) #9
qfel
Matt, since you picked up the job to review parent CL, please also see chrome/test/data/extensions/api_test/tabs/capture_visible_tab/* ...
8 years, 5 months ago (2012-07-20 11:27:13 UTC) #10
qfel
On 2012/07/17 23:05:34, Nirnimesh wrote: > LGTM > > http://codereview.chromium.org/10784009/diff/6010/ash/accelerators/accelerator_table.h > File ash/accelerators/accelerator_table.h (right): > ...
8 years, 5 months ago (2012-07-20 15:45:43 UTC) #11
Matt Perry
lgtm http://codereview.chromium.org/10784009/diff/27002/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js File chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js (right): http://codereview.chromium.org/10784009/diff/27002/chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js#newcode28 chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_disabled.js:28: 'Taking screenshots has been disabled')); nit: make this ...
8 years, 5 months ago (2012-07-20 18:17:25 UTC) #12
qfel
Sky, can you review ash/* files?
8 years, 4 months ago (2012-07-27 12:33:15 UTC) #13
sky
http://codereview.chromium.org/10784009/diff/36019/ash/accelerators/accelerator_action.h File ash/accelerators/accelerator_action.h (right): http://codereview.chromium.org/10784009/diff/36019/ash/accelerators/accelerator_action.h#newcode5 ash/accelerators/accelerator_action.h:5: #ifndef ASH_ACCELERATORS_ACTION_TABLE_H_ Should match file name. http://codereview.chromium.org/10784009/diff/36019/ash/accelerators/accelerator_table.h File ash/accelerators/accelerator_table.h ...
8 years, 4 months ago (2012-08-02 20:14:39 UTC) #14
xot
Some tentative comments. https://chromiumcodereview.appspot.com/10784009/diff/36019/chrome/test/functional/policy.py File chrome/test/functional/policy.py (right): https://chromiumcodereview.appspot.com/10784009/diff/36019/chrome/test/functional/policy.py#newcode705 chrome/test/functional/policy.py:705: def FilesCount(): Can you make FilesCount() ...
8 years, 4 months ago (2012-08-03 15:40:36 UTC) #15
qfel
http://codereview.chromium.org/10784009/diff/36019/ash/accelerators/accelerator_action.h File ash/accelerators/accelerator_action.h (right): http://codereview.chromium.org/10784009/diff/36019/ash/accelerators/accelerator_action.h#newcode5 ash/accelerators/accelerator_action.h:5: #ifndef ASH_ACCELERATORS_ACTION_TABLE_H_ On 2012/08/02 20:14:39, sky wrote: > Should ...
8 years, 4 months ago (2012-08-07 09:23:14 UTC) #16
qfel
I just realized I need a reviewer for chrome/browser/automation/*, so adding Paweł.
8 years, 4 months ago (2012-08-09 18:38:05 UTC) #17
qfel
On 2012/08/09 18:38:05, qfel wrote: > I just realized I need a reviewer for chrome/browser/automation/*, ...
8 years, 4 months ago (2012-08-09 18:56:22 UTC) #18
Ben Goodger (Google)
So, wallpaper is implemented almost entirely in ash, and should be tested there. The whole ...
8 years, 4 months ago (2012-08-09 19:54:29 UTC) #19
Ben Goodger (Google)
e.g. see ash_unittests.exe
8 years, 4 months ago (2012-08-09 19:55:27 UTC) #20
Nirnimesh
Ben, if the RunAshCommand() automation call gets added, it can be used for other (non-browser) ...
8 years, 4 months ago (2012-08-09 22:29:23 UTC) #21
qfel
And when I started that CL I heard the goal is to have pyauto test ...
8 years, 4 months ago (2012-08-16 08:47:44 UTC) #22
Mattias Nissler (ping if slow)
On 2012/08/16 08:47:44, qfel wrote: > And when I started that CL I heard the ...
8 years, 4 months ago (2012-08-16 09:53:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/48001
8 years, 4 months ago (2012-08-21 07:55:02 UTC) #24
commit-bot: I haz the power
Try job failure for 10784009-48001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-21 08:54:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/48001
8 years, 4 months ago (2012-08-21 12:46:57 UTC) #26
commit-bot: I haz the power
Try job failure for 10784009-48001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-21 14:18:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/48001
8 years, 4 months ago (2012-08-22 16:21:12 UTC) #28
commit-bot: I haz the power
Try job failure for 10784009-48001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-22 18:30:50 UTC) #29
Paweł Hajdan Jr.
LGTM
8 years, 3 months ago (2012-08-29 16:39:17 UTC) #30
qfel
Converted old committed pyauto tests to browser tests.
8 years, 3 months ago (2012-08-30 12:19:03 UTC) #31
qfel
On 2012/08/30 12:19:03, qfel wrote: > Converted old committed pyauto tests to browser tests. Sorry, ...
8 years, 3 months ago (2012-08-30 12:29:34 UTC) #32
bartfab (slow)
https://chromiumcodereview.appspot.com/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://chromiumcodereview.appspot.com/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc#newcode169 chrome/browser/policy/policy_browsertest.cc:169: class LoadObserver : public content::NotificationObserver { #include "content/public/browser/notification_observer.h" is ...
8 years, 3 months ago (2012-08-31 15:50:13 UTC) #33
Joao da Silva
Nice tests! Please see the comment about the WindowedNotificationObserver. http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc#newcode169 chrome/browser/policy/policy_browsertest.cc:169: ...
8 years, 3 months ago (2012-09-03 09:01:04 UTC) #34
qfel
http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc#newcode169 chrome/browser/policy/policy_browsertest.cc:169: class LoadObserver : public content::NotificationObserver { On 2012/09/03 09:01:04, ...
8 years, 3 months ago (2012-09-03 11:31:20 UTC) #35
Joao da Silva
lgtm! http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): http://codereview.chromium.org/10784009/diff/71001/chrome/browser/policy/policy_browsertest.cc#newcode271 chrome/browser/policy/policy_browsertest.cc:271: L" btest_initCompleted(img.src);", On 2012/09/03 11:31:21, qfel wrote: > ...
8 years, 3 months ago (2012-09-03 11:37:54 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/63004
8 years, 3 months ago (2012-09-03 12:00:28 UTC) #37
commit-bot: I haz the power
Failed to apply patch for chrome/browser/policy/policy_browsertest.cc: While running patch -p1 --forward --force; patching file chrome/browser/policy/policy_browsertest.cc ...
8 years, 3 months ago (2012-09-03 12:00:31 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/68012
8 years, 3 months ago (2012-09-03 12:20:07 UTC) #39
commit-bot: I haz the power
Try job failure for 10784009-68012 (retry) on linux_chromeos for step "runhooks". It's a second try, ...
8 years, 3 months ago (2012-09-03 14:37:41 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/68012
8 years, 3 months ago (2012-09-03 18:03:18 UTC) #41
commit-bot: I haz the power
Try job failure for 10784009-68012 on win for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=25956 Step "update" is always ...
8 years, 3 months ago (2012-09-03 18:09:29 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qfel@google.com/10784009/68012
8 years, 3 months ago (2012-09-03 18:31:48 UTC) #43
commit-bot: I haz the power
8 years, 3 months ago (2012-09-03 20:41:08 UTC) #44
Change committed as 154714

Powered by Google App Engine
This is Rietveld 408576698