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

Side by Side Diff: mojo/public/tests/system/core_cpp_unittest.cc

Issue 213393002: Mojo: Move public C system header files to mojo/public/c/system/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/system/system_export.h ('k') | mojo/public/tests/system/core_perftest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/public/system/core_cpp.h" 5 #include "mojo/public/system/core_cpp.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "mojo/public/system/macros.h" 9 #include "mojo/public/c/system/macros.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace { 13 namespace {
14 14
15 TEST(CoreCppTest, GetTimeTicksNow) { 15 TEST(CoreCppTest, GetTimeTicksNow) {
16 const MojoTimeTicks start = GetTimeTicksNow(); 16 const MojoTimeTicks start = GetTimeTicksNow();
17 EXPECT_NE(static_cast<MojoTimeTicks>(0), start) 17 EXPECT_NE(static_cast<MojoTimeTicks>(0), start)
18 << "GetTimeTicksNow should return nonzero value"; 18 << "GetTimeTicksNow should return nonzero value";
19 } 19 }
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value())); 379 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value()));
380 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value())); 380 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value()));
381 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value())); 381 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value()));
382 } 382 }
383 } 383 }
384 384
385 // TODO(vtl): Write data pipe tests. 385 // TODO(vtl): Write data pipe tests.
386 386
387 } // namespace 387 } // namespace
388 } // namespace mojo 388 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/system/system_export.h ('k') | mojo/public/tests/system/core_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698