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

Unified Diff: ui/snapshot/snapshot_mac_unittest.mm

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added stub methods for iOS Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/snapshot/snapshot_mac.mm ('k') | ui/snapshot/snapshot_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_mac_unittest.mm
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm b/ui/snapshot/snapshot_mac_unittest.mm
similarity index 92%
rename from chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm
rename to ui/snapshot/snapshot_mac_unittest.mm
index c42ffba573f95005fd8c8c8b540abde0381d250e..900617335a820c878bfa976c9bedc22bc806ff80 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm
+++ b/ui/snapshot/snapshot_mac_unittest.mm
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
+#include "ui/snapshot/snapshot.h"
#import <Cocoa/Cocoa.h>
@@ -20,7 +20,7 @@
#endif // 10.7
-namespace chrome {
+namespace ui {
namespace {
typedef PlatformTest GrabWindowSnapshotTest;
@@ -39,7 +39,7 @@ TEST_F(GrabWindowSnapshotTest, TestGrabWindowSnapshot) {
scoped_ptr<std::vector<unsigned char> > png_representation(
new std::vector<unsigned char>);
gfx::Rect bounds = gfx::Rect(0, 0, frame.size.width, frame.size.height);
- EXPECT_TRUE(internal::GrabWindowSnapshot(window, png_representation.get(),
+ EXPECT_TRUE(ui::GrabWindowSnapshot(window, png_representation.get(),
bounds));
// Copy png back into NSData object so we can make sure we grabbed a png.
@@ -59,4 +59,4 @@ TEST_F(GrabWindowSnapshotTest, TestGrabWindowSnapshot) {
}
} // namespace
-} // namespace chrome
+} // namespace ui
« no previous file with comments | « ui/snapshot/snapshot_mac.mm ('k') | ui/snapshot/snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698