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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc

Issue 987583004: Add audible, muted to Tab, c.t.query, c.t.update, and c.t.onUpdated where relevant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch1
Patch Set: rebase Created 5 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 25 matching lines...) Expand all
36 36
37 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; 37 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
38 38
39 class TabCaptureApiTest : public ExtensionApiTest { 39 class TabCaptureApiTest : public ExtensionApiTest {
40 public: 40 public:
41 void SetUpCommandLine(base::CommandLine* command_line) override { 41 void SetUpCommandLine(base::CommandLine* command_line) override {
42 ExtensionApiTest::SetUpCommandLine(command_line); 42 ExtensionApiTest::SetUpCommandLine(command_line);
43 // Specify smallish window size to make testing of tab capture less CPU 43 // Specify smallish window size to make testing of tab capture less CPU
44 // intensive. 44 // intensive.
45 command_line->AppendSwitchASCII(::switches::kWindowSize, "300,300"); 45 command_line->AppendSwitchASCII(::switches::kWindowSize, "300,300");
46 command_line->AppendSwitch(::switches::kEnableTabAudioMuting);
46 } 47 }
47 48
48 void AddExtensionToCommandLineWhitelist() { 49 void AddExtensionToCommandLineWhitelist() {
49 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( 50 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
50 switches::kWhitelistedExtensionID, kExtensionId); 51 switches::kWhitelistedExtensionID, kExtensionId);
51 } 52 }
52 53
53 protected: 54 protected:
54 void SimulateMouseClickInCurrentTab() { 55 void SimulateMouseClickInCurrentTab() {
55 content::SimulateMouseClick( 56 content::SimulateMouseClick(
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 return; 357 return;
357 } 358 }
358 content::RunMessageLoop(); 359 content::RunMessageLoop();
359 } 360 }
360 browser()->tab_strip_model()->RemoveObserver(&observer); 361 browser()->tab_strip_model()->RemoveObserver(&observer);
361 } 362 }
362 363
363 } // namespace 364 } // namespace
364 365
365 } // namespace extensions 366 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698