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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_win_unittest.cc

Issue 324773002: Remove base/memory/scoped_handle.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_handle.h"
7 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
9 #include "base/win/scoped_hglobal.h" 8 #include "base/win/scoped_hglobal.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/base/clipboard/clipboard.h" 10 #include "ui/base/clipboard/clipboard.h"
12 #include "ui/base/dragdrop/os_exchange_data.h" 11 #include "ui/base/dragdrop/os_exchange_data.h"
13 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 12 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
14 #include "url/gurl.h" 13 #include "url/gurl.h"
15 14
16 namespace ui { 15 namespace ui {
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 OSExchangeData data2(data.provider().Clone()); 348 OSExchangeData data2(data.provider().Clone());
350 ASSERT_TRUE(data2.HasURL(OSExchangeData::CONVERT_FILENAMES)); 349 ASSERT_TRUE(data2.HasURL(OSExchangeData::CONVERT_FILENAMES));
351 GURL read_url; 350 GURL read_url;
352 std::wstring title; 351 std::wstring title;
353 EXPECT_TRUE(data2.GetURLAndTitle( 352 EXPECT_TRUE(data2.GetURLAndTitle(
354 OSExchangeData::CONVERT_FILENAMES, &read_url, &title)); 353 OSExchangeData::CONVERT_FILENAMES, &read_url, &title));
355 EXPECT_EQ(GURL("http://google.com"), read_url); 354 EXPECT_EQ(GURL("http://google.com"), read_url);
356 } 355 }
357 356
358 } // namespace ui 357 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698