OLD | NEW |
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 Loading... |
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 |
OLD | NEW |