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

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

Issue 1057603003: Simplify mojo_shell since it's now only used for Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update scripts Created 5 years, 8 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 | « mojo/services/BUILD.gn ('k') | mojo/services/html_viewer/ax_provider_apptest.cc » ('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/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
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 | « mojo/services/BUILD.gn ('k') | mojo/services/html_viewer/ax_provider_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698