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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_browsertest.cc

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/port/browser/render_widget_host_view_port.h" 8 #include "content/port/browser/render_widget_host_view_port.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool result, 63 bool result,
64 const SkBitmap& bitmap) { 64 const SkBitmap& bitmap) {
65 quit_closure.Run(); 65 quit_closure.Run();
66 ASSERT_EQ(expected_result, result); 66 ASSERT_EQ(expected_result, result);
67 if (expected_result) 67 if (expected_result)
68 ASSERT_FALSE(bitmap.empty()); 68 ASSERT_FALSE(bitmap.empty());
69 finish_called_ = true; 69 finish_called_ = true;
70 } 70 }
71 71
72 protected: 72 protected:
73 FilePath test_dir_; 73 base::FilePath test_dir_;
74 bool finish_called_; 74 bool finish_called_;
75 gfx::Size size_; 75 gfx::Size size_;
76 }; 76 };
77 77
78 #if defined(OS_MACOSX) 78 #if defined(OS_MACOSX)
79 // Tests that the callback passed to CopyFromBackingStore is always called, even 79 // Tests that the callback passed to CopyFromBackingStore is always called, even
80 // when the RenderWidgetHost is deleting in the middle of an async copy. 80 // when the RenderWidgetHost is deleting in the middle of an async copy.
81 IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewBrowserTest, 81 IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewBrowserTest,
82 MacAsyncCopyFromBackingStoreCallbackTest) { 82 MacAsyncCopyFromBackingStoreCallbackTest) {
83 if (!IOSurfaceSupport::Initialize()) 83 if (!IOSurfaceSupport::Initialize())
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 size_, 121 size_,
122 base::Bind(&RenderWidgetHostViewBrowserTest::FinishCopyFromBackingStore, 122 base::Bind(&RenderWidgetHostViewBrowserTest::FinishCopyFromBackingStore,
123 base::Unretained(this), true, run_loop.QuitClosure())); 123 base::Unretained(this), true, run_loop.QuitClosure()));
124 run_loop.Run(); 124 run_loop.Run();
125 125
126 ASSERT_TRUE(finish_called_); 126 ASSERT_TRUE(finish_called_);
127 } 127 }
128 #endif 128 #endif
129 129
130 } // namespace content 130 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/safe_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698