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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_unittest.cc

Issue 172003004: Fixit: Move tab and desktop capture code to new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/browser/renderer_host/media/desktop_capture_device.h" 5 #include "content/browser/media/capture/desktop_capture_device.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 15 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 capture_device.StopAndDeAllocate(); 278 capture_device.StopAndDeAllocate();
279 279
280 EXPECT_EQ(kTestFrameWidth1, format.frame_size.width()); 280 EXPECT_EQ(kTestFrameWidth1, format.frame_size.width());
281 EXPECT_EQ(kTestFrameHeight1, format.frame_size.height()); 281 EXPECT_EQ(kTestFrameHeight1, format.frame_size.height());
282 EXPECT_EQ(kFrameRate, format.frame_rate); 282 EXPECT_EQ(kFrameRate, format.frame_rate);
283 EXPECT_EQ(media::PIXEL_FORMAT_ARGB, format.pixel_format); 283 EXPECT_EQ(media::PIXEL_FORMAT_ARGB, format.pixel_format);
284 worker_pool_->FlushForTesting(); 284 worker_pool_->FlushForTesting();
285 } 285 }
286 286
287 } // namespace content 287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698