OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/base/clipboard/clipboard_android.h" | 5 #include "ui/base/clipboard/clipboard_android.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 11 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
11 | 12 |
12 namespace ui { | 13 namespace ui { |
13 | 14 |
14 class ClipboardAndroidTest : public ::testing::Test { | 15 class ClipboardAndroidTest : public ::testing::Test { |
15 public: | 16 public: |
16 ~ClipboardAndroidTest() override { | 17 ~ClipboardAndroidTest() override { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 // Make sure the text is what we inserted while simulating the other app | 84 // Make sure the text is what we inserted while simulating the other app |
84 std::string contents; | 85 std::string contents; |
85 clipboard().ReadAsciiText(CLIPBOARD_TYPE_COPY_PASTE, &contents); | 86 clipboard().ReadAsciiText(CLIPBOARD_TYPE_COPY_PASTE, &contents); |
86 EXPECT_EQ(contents, new_value); | 87 EXPECT_EQ(contents, new_value); |
87 } | 88 } |
88 | 89 |
89 } // namespace ui | 90 } // namespace ui |
90 | 91 |
91 #include "ui/base/clipboard/clipboard_test_template.h" | 92 #include "ui/base/clipboard/clipboard_test_template.h" |
OLD | NEW |