summaryrefslogtreecommitdiffstats
path: root/chrome/test/tab_switching/tab_switching_test.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:23:16 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:23:16 +0000
commitd347b1ef7c061dd2405144acc795474484d511be (patch)
tree0cd727fa06be52b080930fd9b5bad083c0a23523 /chrome/test/tab_switching/tab_switching_test.cc
parent799e6571b29ed05cdce6f5ea80414407c1c05f22 (diff)
downloadchromium_src-d347b1ef7c061dd2405144acc795474484d511be.zip
chromium_src-d347b1ef7c061dd2405144acc795474484d511be.tar.gz
chromium_src-d347b1ef7c061dd2405144acc795474484d511be.tar.bz2
coverity: Check the return value of PathService::Get.
CID=5737 BUG=none TEST=none Review URL: http://codereview.chromium.org/165488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/tab_switching/tab_switching_test.cc')
-rw-r--r--chrome/test/tab_switching/tab_switching_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/test/tab_switching/tab_switching_test.cc b/chrome/test/tab_switching/tab_switching_test.cc
index 876dd87..234b777 100644
--- a/chrome/test/tab_switching/tab_switching_test.cc
+++ b/chrome/test/tab_switching/tab_switching_test.cc
@@ -28,7 +28,7 @@ namespace {
// Usage Flags: -enable-logging -dump-histograms-on-exit
class TabSwitchingUITest : public UITest {
public:
- TabSwitchingUITest() {
+ TabSwitchingUITest() {
PathService::Get(base::DIR_EXE, &path_prefix_);
path_prefix_ = path_prefix_.DirName();
path_prefix_ = path_prefix_.DirName();
@@ -65,7 +65,7 @@ class TabSwitchingUITest : public UITest {
// Now open the corresponding log file and collect average and std dev from
// the histogram stats generated for RenderWidgetHostHWND_WhiteoutDuration
FilePath log_file_name;
- PathService::Get(chrome::DIR_LOGS, &log_file_name);
+ ASSERT_TRUE(PathService::Get(chrome::DIR_LOGS, &log_file_name));
log_file_name = log_file_name.AppendASCII("chrome_debug.log");
bool log_has_been_dumped = false;