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

Side by Side Diff: extensions/browser/mojo/stash_backend_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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
« no previous file with comments | « extensions/browser/mojo/stash_backend.cc ('k') | extensions/browser/null_app_sorting.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 "extensions/browser/mojo/stash_backend.h" 5 #include "extensions/browser/mojo/stash_backend.h"
6 6
7 #include <stdint.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 14 #include "base/run_loop.h"
12 #include "mojo/application/public/interfaces/service_provider.mojom.h" 15 #include "mojo/application/public/interfaces/service_provider.mojom.h"
13 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
14 17
15 namespace extensions { 18 namespace extensions {
16 namespace { 19 namespace {
17 20
18 // Create a data pipe, write some data to the producer handle and return the 21 // Create a data pipe, write some data to the producer handle and return the
19 // consumer handle. 22 // consumer handle.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ASSERT_EQ(0u, stashed_objects.size()); 292 ASSERT_EQ(0u, stashed_objects.size());
290 // Check that the stashed handle has been closed. 293 // Check that the stashed handle has been closed.
291 MojoResult result = 294 MojoResult result =
292 mojo::Wait(message_pipe.handle1.get(), 295 mojo::Wait(message_pipe.handle1.get(),
293 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_READABLE, 296 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_READABLE,
294 MOJO_DEADLINE_INDEFINITE, nullptr); 297 MOJO_DEADLINE_INDEFINITE, nullptr);
295 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION, result); 298 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION, result);
296 } 299 }
297 300
298 } // namespace extensions 301 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/mojo/stash_backend.cc ('k') | extensions/browser/null_app_sorting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698