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

Issue 6548003: Add a unittest for the CPU class.... (Closed)

Created:
9 years, 10 months ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
fbarchard, jiesun
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Add a unittest for the CPU class. This change just adds a unit test "CPU.RunExtendedInstructions" to base_unittests, which runs extended instructions for each CPU member function. BUG=none TEST=CPU.RunExtendedInstructions Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75861

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -2 lines) Patch
M base/base.gyp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
A base/cpu_unittest.cc View 1 2 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Hironori Bono
Greetings, This change just adds a unit test for the functions added by your r75150 ...
9 years, 10 months ago (2011-02-21 10:45:26 UTC) #1
jiesun
LGTM. thanks for doing this. I was not able to think of any good test ...
9 years, 10 months ago (2011-02-22 17:11:40 UTC) #2
fbarchard
http://codereview.chromium.org/6548003/diff/4001/base/cpu_unittest.cc File base/cpu_unittest.cc (right): http://codereview.chromium.org/6548003/diff/4001/base/cpu_unittest.cc#newcode20 base/cpu_unittest.cc:20: if (cpu.has_mmx()) { mmx is required for chromium. You ...
9 years, 10 months ago (2011-02-22 17:48:03 UTC) #3
Hironori Bono
9 years, 10 months ago (2011-02-23 09:23:31 UTC) #4
Greetings Frank,

Thank you for your review and a comment. I have applied your comment. Is it
possible to take another look?

Regards,

Hironori Bono

http://codereview.chromium.org/6548003/diff/4001/base/cpu_unittest.cc
File base/cpu_unittest.cc (right):

http://codereview.chromium.org/6548003/diff/4001/base/cpu_unittest.cc#newcode20
base/cpu_unittest.cc:20: if (cpu.has_mmx()) {
On 2011/02/22 17:48:03, fbarchard wrote:
> mmx is required for chromium.  You could just assert on it.

Done. I have replaced this code with ASSERT_TRUE().

Powered by Google App Engine
This is Rietveld 408576698