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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io_test/path_test.cc

Issue 19673003: [NaCl SDK] Consistent use of copyright header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 */
5 4
6 #include <fcntl.h> 5 #include <fcntl.h>
7 #include "nacl_io/kernel_proxy.h" 6 #include "nacl_io/kernel_proxy.h"
8 #include "nacl_io/path.h" 7 #include "nacl_io/path.h"
9 8
10 #include "gtest/gtest.h" 9 #include "gtest/gtest.h"
11 10
12 TEST(PathTest, SanityChecks) { 11 TEST(PathTest, SanityChecks) {
13 // can we construct and delete? 12 // can we construct and delete?
14 Path ph1("."); 13 Path ph1(".");
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 EXPECT_EQ("/an/absolute/path", p.Range(0, 4)); 249 EXPECT_EQ("/an/absolute/path", p.Range(0, 4));
251 EXPECT_EQ("an/absolute/path", p.Range(1, 4)); 250 EXPECT_EQ("an/absolute/path", p.Range(1, 4));
252 EXPECT_EQ("absolute/path", p.Range(2, 4)); 251 EXPECT_EQ("absolute/path", p.Range(2, 4));
253 EXPECT_EQ("path", p.Range(3, 4)); 252 EXPECT_EQ("path", p.Range(3, 4));
254 253
255 EXPECT_EQ("/an/absolute", p.Range(0, 3)); 254 EXPECT_EQ("/an/absolute", p.Range(0, 3));
256 EXPECT_EQ("an/absolute", p.Range(1, 3)); 255 EXPECT_EQ("an/absolute", p.Range(1, 3));
257 EXPECT_EQ("absolute", p.Range(2, 3)); 256 EXPECT_EQ("absolute", p.Range(2, 3));
258 } 257 }
259 258
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698