| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <shlobj.h> | 6 #include <shlobj.h> |
| 7 | 7 |
| 8 #include "app/os_exchange_data.h" | 8 #include "app/os_exchange_data.h" |
| 9 #include "base/clipboard_util.h" | 9 #include "base/clipboard_util.h" |
| 10 #include "base/pickle.h" | 10 #include "base/pickle.h" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 scoped_refptr<OSExchangeData> data(new OSExchangeData); | 356 scoped_refptr<OSExchangeData> data(new OSExchangeData); |
| 357 data->SetString(L"http://google.com"); | 357 data->SetString(L"http://google.com"); |
| 358 | 358 |
| 359 scoped_ptr<OSExchangeData> data2(new OSExchangeData(data.get())); | 359 scoped_ptr<OSExchangeData> data2(new OSExchangeData(data.get())); |
| 360 ASSERT_TRUE(data2->HasURL()); | 360 ASSERT_TRUE(data2->HasURL()); |
| 361 GURL read_url; | 361 GURL read_url; |
| 362 std::wstring title; | 362 std::wstring title; |
| 363 EXPECT_TRUE(data2->GetURLAndTitle(&read_url, &title)); | 363 EXPECT_TRUE(data2->GetURLAndTitle(&read_url, &title)); |
| 364 EXPECT_EQ(GURL("http://google.com"), read_url); | 364 EXPECT_EQ(GURL("http://google.com"), read_url); |
| 365 } | 365 } |
| OLD | NEW |