Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1020)

Side by Side Diff: services/clipboard/clipboard_apptest.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/clipboard/BUILD.gn ('k') | services/clipboard/clipboard_standalone_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/converters/array_string/array_string_type_converters.h" 7 #include "mojo/converters/array_string/array_string_type_converters.h"
8 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/public/cpp/application/application_impl.h"
9 #include "mojo/public/cpp/application/application_test_base.h" 9 #include "mojo/public/cpp/application/application_test_base.h"
10 #include "mojo/services/clipboard/public/interfaces/clipboard.mojom.h" 10 #include "mojo/services/clipboard/interfaces/clipboard.mojom.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,
20 base::RunLoop* run_loop, 20 base::RunLoop* run_loop,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « services/clipboard/BUILD.gn ('k') | services/clipboard/clipboard_standalone_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698