| 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 "mojo/application/application_test_base_chromium.h" |
| 7 #include "mojo/common/common_type_converters.h" | 8 #include "mojo/common/common_type_converters.h" |
| 8 #include "mojo/public/cpp/application/application_impl.h" | 9 #include "mojo/public/cpp/application/application_impl.h" |
| 9 #include "mojo/public/cpp/application/application_test_base.h" | |
| 10 #include "third_party/mojo_services/src/clipboard/public/interfaces/clipboard.mo
jom.h" | 10 #include "third_party/mojo_services/src/clipboard/public/interfaces/clipboard.mo
jom.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 |