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

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

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 <stdint.h>
6
5 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h"
6 #include "base/run_loop.h" 9 #include "base/run_loop.h"
7 #include "components/clipboard/public/interfaces/clipboard.mojom.h" 10 #include "components/clipboard/public/interfaces/clipboard.mojom.h"
8 #include "mojo/application/public/cpp/application_impl.h" 11 #include "mojo/application/public/cpp/application_impl.h"
9 #include "mojo/application/public/cpp/application_test_base.h" 12 #include "mojo/application/public/cpp/application_test_base.h"
10 #include "mojo/common/common_type_converters.h" 13 #include "mojo/common/common_type_converters.h"
11 14
12 using mojo::Array; 15 using mojo::Array;
13 using mojo::Clipboard; 16 using mojo::Clipboard;
14 using mojo::Map; 17 using mojo::Map;
15 using mojo::String; 18 using mojo::String;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 EXPECT_EQ(kPlainTextData, data); 150 EXPECT_EQ(kPlainTextData, data);
148 151
149 Map<String, Array<uint8_t>> mime_data; 152 Map<String, Array<uint8_t>> mime_data;
150 clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, mime_data.Pass()); 153 clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, mime_data.Pass());
151 154
152 EXPECT_EQ(2ul, GetSequenceNumber()); 155 EXPECT_EQ(2ul, GetSequenceNumber());
153 EXPECT_FALSE(GetDataOfType(Clipboard::MIME_TYPE_TEXT, &data)); 156 EXPECT_FALSE(GetDataOfType(Clipboard::MIME_TYPE_TEXT, &data));
154 } 157 }
155 158
156 } // namespace clipboard 159 } // namespace clipboard
OLDNEW
« no previous file with comments | « components/chrome_apps/chrome_apps_resource_util.h ('k') | components/clipboard/clipboard_standalone_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698