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

Side by Side Diff: rlz/lib/rlz_lib_test.cc

Issue 1547683004: Switch to standard integer types in rlz/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « rlz/lib/rlz_lib.cc ('k') | rlz/lib/rlz_value_store.h » ('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 (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 // 4 //
5 // A test application for the RLZ library. 5 // A test application for the RLZ library.
6 // 6 //
7 // These tests should not be executed on the build server: 7 // These tests should not be executed on the build server:
8 // - They assert for the failed cases. 8 // - They assert for the failed cases.
9 // - They modify machine state (registry). 9 // - They modify machine state (registry).
10 // 10 //
11 // These tests require write access to HKLM and HKCU. 11 // These tests require write access to HKLM and HKCU.
12 // 12 //
13 // The "GGLA" brand is used to test the normal code flow of the code, and the 13 // The "GGLA" brand is used to test the normal code flow of the code, and the
14 // "TEST" brand is used to test the supplementary brand code code flow. 14 // "TEST" brand is used to test the supplementary brand code code flow.
15 15
16 #include "base/posix/eintr_wrapper.h" 16 #include <stddef.h>
17
17 #include "base/logging.h" 18 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/posix/eintr_wrapper.h"
21 #include "build/build_config.h"
19 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
21 24
22 #include "rlz/lib/financial_ping.h" 25 #include "rlz/lib/financial_ping.h"
23 #include "rlz/lib/rlz_lib.h" 26 #include "rlz/lib/rlz_lib.h"
24 #include "rlz/lib/rlz_value_store.h" 27 #include "rlz/lib/rlz_value_store.h"
25 #include "rlz/test/rlz_test_helpers.h" 28 #include "rlz/test/rlz_test_helpers.h"
26 29
27 #if defined(OS_WIN) 30 #if defined(OS_WIN)
28 #include <Windows.h> 31 #include <Windows.h>
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 int mkdir_result = mkdir(rlz_lib::testing::RlzStoreFilenameStr().c_str(), 934 int mkdir_result = mkdir(rlz_lib::testing::RlzStoreFilenameStr().c_str(),
932 0500); 935 0500);
933 ASSERT_EQ(0, mkdir_result); 936 ASSERT_EQ(0, mkdir_result);
934 937
935 rlz_lib::SupplementaryBranding branding("TEST"); 938 rlz_lib::SupplementaryBranding branding("TEST");
936 EXPECT_FALSE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, 939 EXPECT_FALSE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER,
937 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::INSTALL)); 940 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::INSTALL));
938 } 941 }
939 942
940 #endif 943 #endif
OLDNEW
« no previous file with comments | « rlz/lib/rlz_lib.cc ('k') | rlz/lib/rlz_value_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698