| 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 "chrome/browser/ui/omnibox/omnibox_view.h" | 5 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "testing/platform_test.h" | 11 #include "testing/platform_test.h" |
| 12 #include "ui/base/clipboard/clipboard.h" | 12 #include "ui/base/clipboard/clipboard.h" |
| 13 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 13 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class OmniboxViewTest : public PlatformTest { | 17 class OmniboxViewTest : public PlatformTest { |
| 18 public: | 18 public: |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 ui::Clipboard::BUFFER_STANDARD); | 131 ui::Clipboard::BUFFER_STANDARD); |
| 132 clipboard_writer.WriteText(kWrappedAddress); | 132 clipboard_writer.WriteText(kWrappedAddress); |
| 133 } | 133 } |
| 134 | 134 |
| 135 const string16 kFixedAddress(ASCIIToUTF16( | 135 const string16 kFixedAddress(ASCIIToUTF16( |
| 136 "1600 Amphitheatre Parkway Mountain View, CA")); | 136 "1600 Amphitheatre Parkway Mountain View, CA")); |
| 137 EXPECT_EQ(kFixedAddress, OmniboxView::GetClipboardText()); | 137 EXPECT_EQ(kFixedAddress, OmniboxView::GetClipboardText()); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace | 140 } // namespace |
| OLD | NEW |