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

Side by Side Diff: test/cctest/test-version.cc

Issue 1163803002: Cosmetic changes to tests to make it easier to concatenate them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix snapshot-external.cc Created 5 years, 6 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 | « test/cctest/test-threads.cc ('k') | test/cctest/test-weakmaps.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 28 matching lines...) Expand all
39 void SetVersion(int major, int minor, int build, int patch, 39 void SetVersion(int major, int minor, int build, int patch,
40 bool candidate, const char* soname) { 40 bool candidate, const char* soname) {
41 Version::major_ = major; 41 Version::major_ = major;
42 Version::minor_ = minor; 42 Version::minor_ = minor;
43 Version::build_ = build; 43 Version::build_ = build;
44 Version::patch_ = patch; 44 Version::patch_ = patch;
45 Version::candidate_ = candidate; 45 Version::candidate_ = candidate;
46 Version::soname_ = soname; 46 Version::soname_ = soname;
47 } 47 }
48 48
49 } } // namespace v8::internal 49 } // namespace internal
50 } // namespace v8
50 51
51 52
52 static void CheckVersion(int major, int minor, int build, 53 static void CheckVersion(int major, int minor, int build,
53 int patch, bool candidate, 54 int patch, bool candidate,
54 const char* expected_version_string, 55 const char* expected_version_string,
55 const char* expected_generic_soname) { 56 const char* expected_generic_soname) {
56 static v8::internal::EmbeddedVector<char, 128> version_str; 57 static v8::internal::EmbeddedVector<char, 128> version_str;
57 static v8::internal::EmbeddedVector<char, 128> soname_str; 58 static v8::internal::EmbeddedVector<char, 128> soname_str;
58 59
59 // Test version without specific SONAME. 60 // Test version without specific SONAME.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 CheckVersion(1, 0, 0, 0, true, 96 CheckVersion(1, 0, 0, 0, true,
96 "1.0.0 (candidate)", "libv8-1.0.0-candidate.so"); 97 "1.0.0 (candidate)", "libv8-1.0.0-candidate.so");
97 CheckVersion(1, 0, 0, 1, false, "1.0.0.1", "libv8-1.0.0.1.so"); 98 CheckVersion(1, 0, 0, 1, false, "1.0.0.1", "libv8-1.0.0.1.so");
98 CheckVersion(1, 0, 0, 1, true, 99 CheckVersion(1, 0, 0, 1, true,
99 "1.0.0.1 (candidate)", "libv8-1.0.0.1-candidate.so"); 100 "1.0.0.1 (candidate)", "libv8-1.0.0.1-candidate.so");
100 CheckVersion(2, 5, 10, 7, false, "2.5.10.7", "libv8-2.5.10.7.so"); 101 CheckVersion(2, 5, 10, 7, false, "2.5.10.7", "libv8-2.5.10.7.so");
101 CheckVersion(2, 5, 10, 7, true, 102 CheckVersion(2, 5, 10, 7, true,
102 "2.5.10.7 (candidate)", "libv8-2.5.10.7-candidate.so"); 103 "2.5.10.7 (candidate)", "libv8-2.5.10.7-candidate.so");
103 #endif 104 #endif
104 } 105 }
OLDNEW
« no previous file with comments | « test/cctest/test-threads.cc ('k') | test/cctest/test-weakmaps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698