Index: chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm |
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm b/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm |
index 14756631797195e3d02666cdd2f866bc889d64bc..638aecfccca9d0f51968e1f6e42b4c2748ef2813 100644 |
--- a/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm |
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm |
@@ -8,9 +8,6 @@ |
#include "base/memory/scoped_nsobject.h" |
#include "base/memory/scoped_ptr.h" |
-#include "chrome/browser/browser_process.h" |
-#include "chrome/test/base/testing_browser_process.h" |
-#include "chrome/test/base/testing_pref_service.h" |
#include "testing/platform_test.h" |
#include "ui/gfx/rect.h" |
@@ -20,10 +17,6 @@ namespace { |
typedef PlatformTest GrabWindowSnapshotTest; |
TEST_F(GrabWindowSnapshotTest, TestGrabWindowSnapshot) { |
- // GrabWindowSnapshot reads local state, so set it up |
- ScopedTestingLocalState local_state( |
- static_cast<TestingBrowserProcess*>(g_browser_process)); |
- |
// Launch a test window so we can take a snapshot. |
NSRect frame = NSMakeRect(0, 0, 400, 400); |
scoped_nsobject<NSWindow> window( |
@@ -37,7 +30,8 @@ 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(GrabWindowSnapshot(window, png_representation.get(), bounds)); |
+ EXPECT_TRUE(internal::GrabWindowSnapshot(window, png_representation.get(), |
+ bounds)); |
// Copy png back into NSData object so we can make sure we grabbed a png. |
scoped_nsobject<NSData> image_data( |