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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "components/clipboard/public/interfaces/clipboard.mojom.h" | 7 #include "components/clipboard/public/interfaces/clipboard.mojom.h" |
8 #include "mojo/application/application_test_base_chromium.h" | |
9 #include "mojo/application/public/cpp/application_impl.h" | 8 #include "mojo/application/public/cpp/application_impl.h" |
| 9 #include "mojo/application/public/cpp/application_test_base.h" |
10 #include "mojo/common/common_type_converters.h" | 10 #include "mojo/common/common_type_converters.h" |
11 | 11 |
12 using mojo::Array; | 12 using mojo::Array; |
13 using mojo::Clipboard; | 13 using mojo::Clipboard; |
14 using mojo::Map; | 14 using mojo::Map; |
15 using mojo::String; | 15 using mojo::String; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 void CopyUint64AndEndRunloop(uint64_t* output, | 19 void CopyUint64AndEndRunloop(uint64_t* output, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 EXPECT_EQ(kPlainTextData, data); | 147 EXPECT_EQ(kPlainTextData, data); |
148 | 148 |
149 Map<String, Array<uint8_t>> mime_data; | 149 Map<String, Array<uint8_t>> mime_data; |
150 clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, mime_data.Pass()); | 150 clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, mime_data.Pass()); |
151 | 151 |
152 EXPECT_EQ(2ul, GetSequenceNumber()); | 152 EXPECT_EQ(2ul, GetSequenceNumber()); |
153 EXPECT_FALSE(GetDataOfType(Clipboard::MIME_TYPE_TEXT, &data)); | 153 EXPECT_FALSE(GetDataOfType(Clipboard::MIME_TYPE_TEXT, &data)); |
154 } | 154 } |
155 | 155 |
156 } // namespace clipboard | 156 } // namespace clipboard |
OLD | NEW |