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

Unified Diff: content/renderer/render_view_impl_unittest.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl_unittest.cc
diff --git a/content/renderer/render_view_impl_unittest.cc b/content/renderer/render_view_impl_unittest.cc
index 68e88857ec9d6ebb112f5535170eefa44bf1c511..971a4fb20370fd1ad4d3635cfde77349aa397978 100644
--- a/content/renderer/render_view_impl_unittest.cc
+++ b/content/renderer/render_view_impl_unittest.cc
@@ -6,7 +6,7 @@
#include "content/public/common/context_menu_params.h"
#include "content/renderer/render_view_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/base/range/range.h"
+#include "ui/gfx/range/range.h"
namespace content {
@@ -14,16 +14,16 @@ TEST(RenderViewImplTest, ShouldUpdateSelectionTextFromContextMenuParams) {
struct {
const char* selection_text;
size_t selection_text_offset;
- ui::Range selection_range;
+ gfx::Range selection_range;
const char* params_selection_text;
bool expected_result;
} cases[] = {
- { "test", 0, ui::Range(0, 4), "test", false },
- { "zebestest", 0, ui::Range(2, 6), "best", false },
- { "zebestest", 2, ui::Range(2, 6), "best", true },
- { "test", 0, ui::Range(0, 4), "hello", true },
- { "best test", 0, ui::Range(0, 4), "best ", false },
- { "best test", 0, ui::Range(0, 5), "best", false },
+ { "test", 0, gfx::Range(0, 4), "test", false },
+ { "zebestest", 0, gfx::Range(2, 6), "best", false },
+ { "zebestest", 2, gfx::Range(2, 6), "best", true },
+ { "test", 0, gfx::Range(0, 4), "hello", true },
+ { "best test", 0, gfx::Range(0, 4), "best ", false },
+ { "best test", 0, gfx::Range(0, 5), "best", false },
};
ContextMenuParams params;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698